]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: avoid revoking Fsx from loner during directory fragmentation
authorYan, Zheng <zyan@redhat.com>
Thu, 7 Mar 2019 08:30:32 +0000 (16:30 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 7 Mar 2019 12:49:51 +0000 (20:49 +0800)
commite68f1acb695a6b94ddd799b06a472bdf93d71813
tree2436976b1259893e0ef988ee70c4c5e296d483ee
parenta277b5c1fee510c3716a0b495370c46eeb33d496
mds: avoid revoking Fsx from loner during directory fragmentation

MDS wrlock filelock during directory fragmentation and subtree migration.
The purpose of the wrlock is preventing scatter gather process. MDS does
not modify directory contents after filelock is locked. MDS can pretend
that wrlock is being acquired by loner. So it has a higher change to get
the wrlock.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/Locker.cc
src/mds/Locker.h
src/mds/MDCache.cc
src/mds/Migrator.cc
src/mds/Mutation.h