]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: fix missing unblock_writes if shrink is not allowed 25253/head
authorrunsisi <luo.runbing@zte.com.cn>
Mon, 12 Nov 2018 12:01:32 +0000 (20:01 +0800)
committerPrashant D <pdhange@redhat.com>
Mon, 26 Nov 2018 02:57:03 +0000 (21:57 -0500)
Fixes: http://tracker.ceph.com/issues/36778
Signed-off-by: runsisi <luo.runbing@zte.com.cn>
(cherry picked from commit 3899bee9f5ea2c4b19fb1266a8b59f6e04e99926)

src/librbd/operation/ResizeRequest.cc

index 07e5158c97f243aee74bbc90468666182142514f..1e7e69afe8759c4d8d311db4ca6a1a07b43e0404 100644 (file)
@@ -118,6 +118,7 @@ Context *ResizeRequest<I>::send_append_op_event() {
 
   if (m_new_size < m_original_size && !m_allow_shrink) {
     ldout(cct, 1) << " shrinking the image is not permitted" << dendl;
+    image_ctx.io_work_queue->unblock_writes();
     this->async_complete(-EINVAL);
     return nullptr;
   }