]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dlm: fix error if active rsb is not hashed
authorAlexander Aring <aahringo@redhat.com>
Fri, 28 Feb 2025 22:48:51 +0000 (17:48 -0500)
committerDavid Teigland <teigland@redhat.com>
Sat, 1 Mar 2025 00:24:21 +0000 (19:24 -0500)
commita3672304abf2a847ac0c54c84842c64c5bfba279
treea63c7c6733f76e340a90056bd878a1c2f63ef27e
parent94e6e889a786dd16542fc8f2a45405fa13e3bbb5
dlm: fix error if active rsb is not hashed

If an active rsb is not hashed anymore and this could occur because we
releases and acquired locks we need to signal the followed code that
the lookup failed. Since the lookup was successful, but it isn't part of
the rsb hash anymore we need to signal it by setting error to -EBADR as
dlm_search_rsb_tree() does it.

Cc: stable@vger.kernel.org
Fixes: 5be323b0c64d ("dlm: move dlm_search_rsb_tree() out of lock")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lock.c