]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: do not unblock IO prior to growing object map during resize 30796/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 29 May 2019 13:37:34 +0000 (09:37 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 8 Oct 2019 20:19:39 +0000 (16:19 -0400)
commit325ee001aa220c8d603425db12aecfa6b60e8dfe
tree298c63986fa93e2987d2861f94bfa764efeb79b9
parentfd0f93654a17c13d42a2c4c8d5a52c8e16cbb025
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