]> 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)
committerChristopher Hoffman <choffman@redhat.com>
Thu, 30 Mar 2023 21:25:56 +0000 (21:25 +0000)
commit6a0aeadc31ab1942c42c6e466183148f1d3752be
treee9a2a9fa43e297099ced16ce8bc290f05f400b83
parent8bf4784c5aa80e2b42cfdeb8cb5e355fb21a632b
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>
src/librbd/ManagedLock.cc
src/test/librbd/test_mock_ManagedLock.cc