]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: Propagate EBLOCKLIST in send_acquire_lock
authorChristopher Hoffman <choffman@redhat.com>
Tue, 21 Mar 2023 16:15:04 +0000 (16:15 +0000)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 6 Apr 2023 15:07:56 +0000 (17:07 +0200)
commit7c02bc0ec325c7879abb67c37c9b7caac77da636
treecb90acf000889f1d06212f9a99d8d0ce7204af1b
parent56295b1bc29666920fd0e3c96f30ba2470956963
librbd: Propagate EBLOCKLIST in send_acquire_lock

During send_acquire_lock, there's a case where
there's no watcher handle present and lock request is delayed.
If the client is blocklisted, the delayed request will not
continue and the call that requested lock will never complete.

The lock process will now propagate -EBLOCKLIST, to callback
instead of indefinitely delaying.

Fixes: https://tracker.ceph.com/issues/59115
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
(cherry picked from commit 6a0aeadc31ab1942c42c6e466183148f1d3752be)
src/librbd/ManagedLock.cc
src/test/librbd/test_mock_ManagedLock.cc