]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: optimize resuming stale caps 25254/head
authorYan, Zheng <zyan@redhat.com>
Mon, 10 Dec 2018 03:37:32 +0000 (11:37 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 25 Jan 2019 09:16:04 +0000 (17:16 +0800)
commite824b3d2024db36789fdf579f0af9bf3bbe55d51
treef862a624c4075b67057d24f4329e70bdce094aac
parentc744bc1673ca0b4e50f41516fdf49c8560db073a
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>
src/client/Client.cc
src/mds/Locker.cc
src/mds/cephfs_features.h