diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2013-03-01 10:55:39 +0800 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-01 21:16:10 -0700 |
commit | 6070e0c1e2b515ad5edc2f8224031b051bd08109 (patch) | |
tree | 2a9bb6aea63854927ce03a2ecee8ccaa6b914008 /fs/ceph/super.h | |
parent | 7971bd92baf729fcebe04d7330ac22dc668d0261 (diff) | |
download | linux-6070e0c1e2b515ad5edc2f8224031b051bd08109.tar.bz2 |
ceph: don't early drop Fw cap
ceph_aio_write() has an optimization that marks CEPH_CAP_FILE_WR
cap dirty before data is copied to page cache and inode size is
updated. The optimization avoids slow cap revocation caused by
balance_dirty_pages(), but introduces inode size update race. If
ceph_check_caps() flushes the dirty cap before the inode size is
updated, MDS can miss the new inode size. So just remove the
optimization.
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Diffstat (limited to 'fs/ceph/super.h')
0 files changed, 0 insertions, 0 deletions