]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: issue new caps when sending reply to client 16191/head
authorYan, Zheng <zyan@redhat.com>
Sat, 22 Apr 2017 04:27:12 +0000 (12:27 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 6 Jul 2017 20:20:31 +0000 (22:20 +0200)
commit53024570e75f2963da84f3a045f1ac1f9ee4081e
tree1e56f5387287d23153f15e60aea2258074a3d97f
parent6c3daeb2970f52970145eb31d4bef56b33df8b40
mds: issue new caps when sending reply to client

After Locker::issue_new_caps() adds new Capability data struct,
do not issue caps immediately. Let CInode::encode_inodestate()
do the job instead. This can avoid various races that early reply
is not allowed, caps that haven't been sent to client gets revoked.

Fixes: http://tracker.ceph.com/issues/19635
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 799703a4acb49db0b6cc99a23e4326767e694c3a)
src/mds/Locker.cc
src/mds/Server.cc