ceph: getattr before read on ceph.* xattrs
authorYan, Zheng <zyan@redhat.com>
Wed, 14 Jun 2017 07:54:56 +0000 (15:54 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 7 Jul 2017 15:25:13 +0000 (17:25 +0200)
commit1684dd03e9f59212775cafa50ea77b9ef5b263db
treec09f6611a70dbda9e36bd71f0887a0e56bb592c8
parent92e57e6287cc7402487edf3eb09c8a7b36dad63f
ceph: getattr before read on ceph.* xattrs

Previously we were returning values for quota, layout
xattrs without any kind of update -- the user just got
whatever happened to be in our cache.

Clearly this extra round trip has a cost, but reads of
these xattrs are fairly rare, happening on admin
intervention rather than in normal operation.

Link: http://tracker.ceph.com/issues/17939
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/xattr.c