mirror of
https://github.com/ceph/ceph
synced 2025-02-04 09:23:24 +00:00
mds: drop MDSIOContext on mds->stopping
`stopping` is true once the MDS has entered suicide(). During this phase, any MDSIOContexts that are called (e.g. from objecter, journaler) become no-ops. Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
parent
ae387b6577
commit
f2daa19c8d
@ -52,6 +52,12 @@ void MDSIOContextBase::complete(int r) {
|
||||
dout(10) << "MDSIOContextBase::complete: " << typeid(*this).name() << dendl;
|
||||
assert(mds != NULL);
|
||||
Mutex::Locker l(mds->mds_lock);
|
||||
if (mds->stopping) {
|
||||
dout(4) << "MDSIOContextBase::complete: dropping for stopping "
|
||||
<< typeid(*this).name() << dendl;
|
||||
return;
|
||||
}
|
||||
|
||||
if (r == -EBLACKLISTED) {
|
||||
derr << "MDSIOContextBase: blacklisted! Restarting..." << dendl;
|
||||
mds->respawn();
|
||||
|
Loading…
Reference in New Issue
Block a user