]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: update exclusive lock state when shutting down 6974/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 18 Dec 2015 19:15:10 +0000 (14:15 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 18 Dec 2015 19:15:10 +0000 (14:15 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ExclusiveLock.cc

index 2dbfd669cdf5e53b5d6ecca96b5bed098eefecaf..cf409739af3def320ffa4f6c4b6eed5fbac23bd3 100644 (file)
@@ -434,6 +434,7 @@ template <typename I>
 void ExclusiveLock<I>::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<I>, &ExclusiveLock<I>::complete_shutdown>(this), 0);