]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: don't mark cap NEEDSNAPFLUSH if client has no pending capsnap
authorYan, Zheng <zyan@redhat.com>
Fri, 14 Jun 2019 09:32:42 +0000 (17:32 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 14 Jun 2019 09:40:42 +0000 (17:40 +0800)
commit9e0775f99258d6a866465b99e2777bf8bcb2bff6
tree58b38e0f87365a15934fe1c71f5df6471ba3b4f0
parentfae15772231b92c38fec5a5e42f6c077de4730f3
mds: don't mark cap NEEDSNAPFLUSH if client has no pending capsnap

This avoid getting wrlocks and setup client_snap_caps on snap inode.
Because there is no further snapflush that triggers releasing these
wrlocks.

Fixes: https://tracker.ceph.com/issues/40361
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/Locker.cc