diff options
author | 2025-02-05 14:50:44 +0100 | |
---|---|---|
committer | 2025-03-10 18:15:38 +0100 | |
commit | 0360faca5d4dfc18d06644c7661cea1dc2b44dcf (patch) | |
tree | d4735408af8910eabad1aae174395eca0491fe5d | |
parent | gfs2: Replace GIF_DEFER_DELETE with GLF_DEFER_DELETE (diff) | |
download | wireguard-linux-0360faca5d4dfc18d06644c7661cea1dc2b44dcf.tar.xz wireguard-linux-0360faca5d4dfc18d06644c7661cea1dc2b44dcf.zip |
gfs2: Remove more dead code in add_to_queue
Remove some more dead code in add_to_queue() that commit 0b93bac2271e
("gfs2: Remove LM_FLAG_PRIORITY flag") has rendered obsolete. This is a
continuation of commit 3302764610057 ("gfs2: remove dead code in
add_to_queue"); no functional change.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
-rw-r--r-- | fs/gfs2/glock.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index a0e8a44de195..dd82bc27c27a 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c @@ -1483,7 +1483,6 @@ __acquires(&gl->gl_lockref.lock) { struct gfs2_glock *gl = gh->gh_gl; struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; - struct list_head *insert_pt = NULL; struct gfs2_holder *gh2; int try_futile = 0; @@ -1519,21 +1518,11 @@ fail: gfs2_holder_wake(gh); return; } - if (test_bit(HIF_HOLDER, &gh2->gh_iflags)) - continue; } trace_gfs2_glock_queue(gh, 1); gfs2_glstats_inc(gl, GFS2_LKS_QCOUNT); gfs2_sbstats_inc(gl, GFS2_LKS_QCOUNT); - if (likely(insert_pt == NULL)) { - list_add_tail(&gh->gh_list, &gl->gl_holders); - return; - } - list_add_tail(&gh->gh_list, insert_pt); - spin_unlock(&gl->gl_lockref.lock); - if (sdp->sd_lockstruct.ls_ops->lm_cancel) - sdp->sd_lockstruct.ls_ops->lm_cancel(gl); - spin_lock(&gl->gl_lockref.lock); + list_add_tail(&gh->gh_list, &gl->gl_holders); return; trap_recursive: |