]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: bail from schedule_request_lock() if already lock owner 47162/head
authorChristopher Hoffman <choffman@redhat.com>
Thu, 14 Jul 2022 18:20:29 +0000 (12:20 -0600)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 1 Aug 2022 15:22:49 +0000 (17:22 +0200)
commit28fa8684c1fc1c05943625ef4895657af4a6d0a0
treeecc3a45189961896321298016bb38aaa92b044dd
parent626dc8e801a2199309d926f8b7f7c451c3ca9a7f
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