]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: optimize resuming stale caps 26278/head
authorYan, Zheng <zyan@redhat.com>
Mon, 10 Dec 2018 03:37:32 +0000 (11:37 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 5 Feb 2019 12:27:02 +0000 (20:27 +0800)
commitf667447530de1f1126fef315154081c16d52a090
tree811643de2f21244399b3879680acc15b42a2877c
parent8eff9621abc5c9933975d4ad40551dbf10be31ef
mds: optimize resuming stale caps

If client doesn't want any cap, there is no need to re-issue stale
caps.

A special case is that client wants some caps, but skipped updating
'wanted'. For this case, client needs to update 'wanted' when stale
session get renewed.

Fixes: http://tracker.ceph.com/issues/38043
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit e824b3d2024db36789fdf579f0af9bf3bbe55d51)

 Conflicts:
src/client/Client.cc
src/mds/cephfs_features.h
src/client/Client.cc
src/mds/Locker.cc