]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: don't rdlock locks in replica object while auth mds is recovering
authorYan, Zheng <zyan@redhat.com>
Wed, 18 Oct 2017 12:58:15 +0000 (20:58 +0800)
committerShinobu Kinjo <shinobu@redhat.com>
Fri, 10 Nov 2017 07:21:24 +0000 (02:21 -0500)
commitcb8eff43b1abd8c268df9e57906d677ff4be8d95
treec9dd0bcd2bfa3a1485c736c4da244d58d2ff47f2
parentf1be92ee34399617cad31a489ec49e993c6eaff6
mds: don't rdlock locks in replica object while auth mds is recovering

Auth mds may take xlock on the lock and change the object when replaying
unsafe requests. To guarantee new requests and replayed unsafe requests
(on auth mds) get processed in proper order, we shouldn't rdlock locks in
replica object while auth mds of the object is recovering

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 0afbc0338e1b9f32340eaa74899d8d43ac8608fe)
src/mds/CDentry.cc
src/mds/CDentry.h
src/mds/CInode.cc
src/mds/CInode.h
src/mds/Locker.cc
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/ScatterLock.h
src/mds/SimpleLock.h