]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix race in PurgeQueue::wait_for_recovery() 18612/head
authorYan, Zheng <zyan@redhat.com>
Thu, 19 Oct 2017 03:32:38 +0000 (11:32 +0800)
committerYan, Zheng <zyan@redhat.com>
Sat, 28 Oct 2017 23:55:11 +0000 (07:55 +0800)
commit80cf872d82fe8c9cc50c97f80645a5ce924f246e
tree9516944bc51915f1e93e3eba813f8e0c930d18bf
parent0d19edf6c5c4ec54bb4f8669efcd19baa3a2e017
mds: fix race in PurgeQueue::wait_for_recovery()

After PurgeQueue::wait_for_recovery() locks the mutex, purge queue
may have already been recovered.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDSRank.cc
src/mds/PurgeQueue.cc
src/mds/PurgeQueue.h