From: Yan, Zheng Date: Fri, 1 Mar 2013 02:55:39 +0000 (+0800) Subject: ceph: don't early drop Fw cap X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~26^2~241 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6070e0c1e2b515ad5edc2f8224031b051bd08109;p=pandora-kernel.git 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 Reviewed-by: Greg Farnum --- Reading git-diff-tree failed