]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: copyup should restart delayed ops against the same object
authorJason Dillaman <dillaman@redhat.com>
Thu, 4 Apr 2019 01:35:40 +0000 (21:35 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 8 Apr 2019 17:20:07 +0000 (13:20 -0400)
commit31ed673a7484c8067dd928cabd5bcb923a35dbaf
tree75a9ef589d71fdeda51efd280d9f707dd69b4777
parent5b90dbe0ae4be3dccfc3fbc0c8d5eb1ed7bb3168
librbd: copyup should restart delayed ops against the same object

This avoids the potential for a race condition where an in-flight
copyup is removed from the in-flight copyup list and a subsequent
IO against the same object causes a second in-flight copyup.

Fixes: http://tracker.ceph.com/issues/39021
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/io/CopyupRequest.cc
src/librbd/io/CopyupRequest.h
src/librbd/io/ObjectRequest.cc
src/test/librbd/io/test_mock_ObjectRequest.cc