]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: bail from schedule_request_lock() if already lock owner 47160/head
authorChristopher Hoffman <choffman@redhat.com>
Thu, 14 Jul 2022 18:20:29 +0000 (12:20 -0600)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 19 Jul 2022 08:35:36 +0000 (10:35 +0200)
commit199159cc9ddece9e5723a5f72e19fbe87b220165
tree1b389783a95b61912c9470ad0f9f0bce6f06ada3
parenta30f8e7ba485cc845ade99b5d94a007af68e0b67
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>
(cherry picked from commit 3527d2c764626c09c5ede80ae844551fd8845756)
src/librbd/ImageWatcher.cc