Skip to content

Commit

Permalink
OSD: fix deadlock in OSD::_committed_osd_maps
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/15701
Signed-off-by: Xinze Chi <xinze@xsky.com>
(cherry picked from commit 4fbf389)
  • Loading branch information
XinzeChi authored and Abhishek Varshney committed May 12, 2016
1 parent d93a90e commit 2349179
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/osd/OSD.cc
Expand Up @@ -6993,9 +6993,9 @@ void OSD::_committed_osd_maps(epoch_t first, epoch_t last, MOSDMap *m)
failure_pending.erase(it++);
}
}
osd_lock.Unlock();
shutdown();
osd_lock.Lock();
// trigger shutdown in a different thread
dout(0) << __func__ << " shutdown OSD via async signal" << dendl;
queue_async_signal(SIGINT);
}
else if (is_preboot()) {
if (m->get_source().is_mon())
Expand Down

0 comments on commit 2349179

Please sign in to comment.