]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix replay locking 2448/head
authorYan, Zheng <ukernel@gmail.com>
Wed, 10 Sep 2014 05:44:58 +0000 (13:44 +0800)
committerYan, Zheng <ukernel@gmail.com>
Wed, 10 Sep 2014 08:48:47 +0000 (16:48 +0800)
commit83bd3430e3a17b77265e696095904b7a9032d2ee
treeee25f0bc7ac9d24498fa72ea668b56efaf87716a
parente11f0617b1a8a8edaeddddd75c09f7131b5242e9
mds: fix replay locking

When replaying EImportFinish/EFragment event, the replay thread may call
MDS::queue_waiters. MDS::queue_waiters() requires its caller to hold the
mds_lock. Otherwise assert(waiter_mutex == __null || waiter_mutex->is_locked())
in Cond::Signal() will be tiggered.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/MDLog.cc