diff options
author | Alexander Aring <aahringo@redhat.com> | 2025-02-28 17:48:50 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2025-02-28 19:24:21 -0500 |
commit | 94e6e889a786dd16542fc8f2a45405fa13e3bbb5 (patch) | |
tree | 0032a46dc66e47e774ed1e364a1615d01c33186c | |
parent | 8e2bad543eca5c25cd02cbc63d72557934d45f13 (diff) |
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>
-rw-r--r-- | fs/dlm/lock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index c8ff88f1cdcf..499fa999ae83 100644 --- a/fs/dlm/lock.c +++ b/fs/dlm/lock.c @@ -784,6 +784,7 @@ static int find_rsb_dir(struct dlm_ls *ls, const void *name, int len, } } else { write_unlock_bh(&ls->ls_rsbtbl_lock); + error = -EBADR; goto do_new; } |