]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: do not unblock IO prior to growing object map during resize 29246/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 29 May 2019 13:37:34 +0000 (09:37 -0400)
committerPrashant D <pdhange@redhat.com>
Wed, 24 Jul 2019 00:34:50 +0000 (20:34 -0400)
commit9ce492f799464fa885bcbaccf55c25d765a6721b
tree069b2a398c9ec337d5e270f21f174275e94f5bbd
parent0e9a0ff18fd97eaf5b310db07633de17e034db38
librbd: do not unblock IO prior to growing object map during resize

This could result in a small race condition where IO is able to write
beyond the current extent of the object map, resulting in an assertion
failure.

Fixes: http://tracker.ceph.com/issues/39952
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit c8ce520870ef46ac00dfea8acfbff46f8b869913)
src/librbd/operation/ResizeRequest.cc
src/librbd/operation/ResizeRequest.h
src/test/librbd/operation/test_mock_ResizeRequest.cc