]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: bail from schedule_request_lock() if already lock owner 47116/head
authorChristopher Hoffman <choffman@redhat.com>
Thu, 14 Jul 2022 18:20:29 +0000 (12:20 -0600)
committerChristopher Hoffman <choffman@redhat.com>
Mon, 18 Jul 2022 13:25:04 +0000 (07:25 -0600)
commit3527d2c764626c09c5ede80ae844551fd8845756
treea82e98891b84438d2b8657b1eb7799614aedcfb8
parentf9bd8922d75a454b4a0ace5a85637213e5ee5700
librbd: bail from schedule_request_lock() if already lock owner

Race condition may be hit if there are multiple pending locks for the
same image and pending callbacks. Abort exclusive lock process if
already exclusive lock owner.

Fixes: https://tracker.ceph.com/issues/56549
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
src/librbd/ImageWatcher.cc