]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: exclusive lock image dispatch should not wait on IO when setting lock
authorJason Dillaman <dillaman@redhat.com>
Wed, 27 May 2020 23:14:14 +0000 (19:14 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 3 Jun 2020 13:45:23 +0000 (09:45 -0400)
commit48456f8c5fdc43f4dca464c61f7b287d57a08e20
tree8f8a624ce16bbc739d5e690ceb5efd1e03eb279c
parentec84d0e75614fc2435003ae6e9c84cbd2217cb19
librbd: exclusive lock image dispatch should not wait on IO when setting lock

IO from later dispatch layers might have caused the need to acquire the lock
(i.e. like an image refresh). In that case, the IO will be blocked waiting for
the exclusive lock to be acquired -- but will deadlock waiting for the IO
to flush.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/exclusive_lock/ImageDispatch.cc