]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: bail from schedule_request_lock() if already lock owner 47161/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:37:34 +0000 (10:37 +0200)
commitd3f4a946b0ff1e77fbeb6f04536979c170ec6e60
tree046e08763018a5b38c3c3e0fed3ecc8099c9063f
parent37106621ae3e65809f9debc33eda146a2a86e35d
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