]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix potential recursive lock of ImageCtx::image_lock
authorJason Dillaman <dillaman@redhat.com>
Wed, 21 Oct 2020 19:58:20 +0000 (15:58 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sun, 1 Nov 2020 14:22:38 +0000 (09:22 -0500)
commitbb38c391b656a1bead77283001d60237b4db7f70
tree515f6c858bc2d3d4a16c02a72137175ecbcc5cce
parent0ef9cec0bd60f26793fde53afa4057926fb21185
librbd: fix potential recursive lock of ImageCtx::image_lock

If the "list_snaps" IO call returns immediately, it can result
in an attempted recursive lock starting from CopyupRequest.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/deep_copy/ObjectCopyRequest.cc
src/test/librbd/deep_copy/test_mock_ObjectCopyRequest.cc