]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix MDLog shutdown process 5001/head
authorJohn Spray <john.spray@redhat.com>
Thu, 18 Jun 2015 10:07:46 +0000 (11:07 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 25 Jun 2015 15:19:25 +0000 (16:19 +0100)
commit39cf07118583166287ef0faa1811ae8efc9bef85
treee602247ca140308227a938d46d5670de353427c1
parentf2daa19c8d5a61f032db87f7ae844340549c2351
mds: fix MDLog shutdown process

We must join threads before completing ::shutdown,
because otherwise these threads might try to use
torn-down resources like the objecter.

The replay/recovery threads may be blocking on
journaler calls like wait_for_readable, so we
must signal them using Journaler::shutdown.  In
order for that to be safe, we must also protect
the assignment of ::journaler from the threads
using the mds_lock.

Fixes: #11985
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDLog.cc
src/mds/MDLog.h