]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: issue new caps when sending reply to client 14743/head
authorYan, Zheng <zyan@redhat.com>
Sat, 22 Apr 2017 04:27:12 +0000 (12:27 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 24 Apr 2017 02:58:38 +0000 (10:58 +0800)
commit799703a4acb49db0b6cc99a23e4326767e694c3a
tree8fa3307f2e8204c8125e6ecb5039c297c8dbec8b
parentc4eb6915d19349ffdde8160c6dab7ed4d4dbecbe
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>
src/mds/Locker.cc
src/mds/Server.cc