From: Jason Dillaman Date: Fri, 18 Dec 2015 19:15:10 +0000 (-0500) Subject: librbd: update exclusive lock state when shutting down X-Git-Tag: v10.0.2~23^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F6974%2Fhead;p=ceph.git librbd: update exclusive lock state when shutting down Signed-off-by: Jason Dillaman --- diff --git a/src/librbd/ExclusiveLock.cc b/src/librbd/ExclusiveLock.cc index 2dbfd669cdf5..cf409739af3d 100644 --- a/src/librbd/ExclusiveLock.cc +++ b/src/librbd/ExclusiveLock.cc @@ -434,6 +434,7 @@ template void ExclusiveLock::send_shutdown() { assert(m_lock.is_locked()); if (m_state == STATE_UNLOCKED) { + m_state = STATE_SHUTTING_DOWN; m_image_ctx.aio_work_queue->unblock_writes(); m_image_ctx.op_work_queue->queue(util::create_context_callback< ExclusiveLock, &ExclusiveLock::complete_shutdown>(this), 0);