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

If an inactive 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: 01fdeca1cc2d ("dlm: use rcu to avoid an extra rsb struct lookup")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lock.c