From: Yan, Zheng Date: Tue, 16 Sep 2014 13:46:17 +0000 (+0800) Subject: ceph: request xattrs if xattr_version is zero X-Git-Tag: omap-for-v3.19/prcm-cleanup~68^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=508b32d8661b12da4c9ca41a9b2054e1dc92fa7e;p=pandora-kernel.git ceph: request xattrs if xattr_version is zero Following sequence of events can happen. - Client releases an inode, queues cap release message. - A 'lookup' reply brings the same inode back, but the reply doesn't contain xattrs because MDS didn't receive the cap release message and thought client already has up-to-data xattrs. The fix is force sending a getattr request to MDS if xattrs_version is 0. The getattr mask is set to CEPH_STAT_CAP_XATTR, so MDS knows client does not have xattr. Signed-off-by: Yan, Zheng --- Reading git-diff-tree failed