]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: do not unblock IO prior to growing object map during resize 28295/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 29 May 2019 13:37:34 +0000 (09:37 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 30 May 2019 14:32:20 +0000 (10:32 -0400)
commitc8ce520870ef46ac00dfea8acfbff46f8b869913
tree61173282f95a68675ce1f1ece7c912a955c815c7
parent2cd5ca2467de835eb89e50a939476564f48d1889
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>
src/librbd/operation/ResizeRequest.cc
src/librbd/operation/ResizeRequest.h
src/test/librbd/operation/test_mock_ResizeRequest.cc