]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: don't hold owner_lock for validate_image_removal()
authorIlya Dryomov <idryomov@gmail.com>
Mon, 8 Feb 2021 16:01:47 +0000 (17:01 +0100)
committerJason Dillaman <dillaman@redhat.com>
Tue, 9 Mar 2021 21:50:10 +0000 (16:50 -0500)
commit4844525055198b5728c7ca69b56869bd7737795d
treef3e88f19d33030f9885a979a321c4170812aca71
parentdd7e76250ac38a8fd26ddcf604b37cbe07ad39f4
librbd: don't hold owner_lock for validate_image_removal()

handle_exclusive_lock() and handle_shut_down_exclusive_lock() call
validate_image_removal() without owner_lock held, so holding it in
shut_down_exclusive_lock() appears to be redundant.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit b1bf3eaef200fb5d1aa847cad14936f2bbbf7b64)
src/librbd/image/PreRemoveRequest.cc