summaryrefslogtreecommitdiffstats
path: root/fs/ceph/inode.c
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2013-03-01 10:55:39 +0800
committerSage Weil <sage@inktank.com>2013-05-01 21:16:10 -0700
commit6070e0c1e2b515ad5edc2f8224031b051bd08109 (patch)
tree2a9bb6aea63854927ce03a2ecee8ccaa6b914008 /fs/ceph/inode.c
parent7971bd92baf729fcebe04d7330ac22dc668d0261 (diff)
downloadop-kernel-dev-6070e0c1e2b515ad5edc2f8224031b051bd08109.zip
op-kernel-dev-6070e0c1e2b515ad5edc2f8224031b051bd08109.tar.gz
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/inode.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud