]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
gfs2: Fix GLF_INVALIDATE_IN_PROGRESS flag clearing in do_xmote
authorAndreas Gruenbacher <agruenba@redhat.com>
Sat, 2 Aug 2025 21:57:24 +0000 (23:57 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 12 Sep 2025 10:02:38 +0000 (12:02 +0200)
Commit 865cc3e9cc0b ("gfs2: fix a deadlock on withdraw-during-mount")
added a statement to do_xmote() to clear the GLF_INVALIDATE_IN_PROGRESS
flag a second time after it has already been cleared.  Fix that.

Fixes: 865cc3e9cc0b ("gfs2: fix a deadlock on withdraw-during-mount")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Andrew Price <anprice@redhat.com>
fs/gfs2/glock.c

index 15a90ab8a979ca1784b33ee94d6f5a59cebdcc81..5361a2641cdbd7c141519e1e54575cab95c01405 100644 (file)
@@ -797,8 +797,6 @@ skip_inval:
                        gl->gl_lockref.count++;
                        gfs2_glock_queue_work(gl, GL_GLOCK_DFT_HOLD);
                        return;
-               } else {
-                       clear_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags);
                }
        }