]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
gfs2: fix glock confusion in function signal_our_withdraw
authorBob Peterson <rpeterso@redhat.com>
Mon, 18 Jan 2021 20:18:59 +0000 (15:18 -0500)
committerBob Peterson <rpeterso@redhat.com>
Mon, 25 Jan 2021 13:08:44 +0000 (08:08 -0500)
commitf5f02fde9f52b2d769c1c2ddfd3d9c4a1fe739a7
tree7f4c5f2257f0e4346732db76e0b22ccf949e1b8a
parent4a011849f7595c95a221551ced9179aa3ffb4890
gfs2: fix glock confusion in function signal_our_withdraw

If go_free is defined, function signal_our_withdraw is supposed to
synchronize on the GLF_FREEING flag of the inode glock, but it
accidentally does that on the live glock. Fix that and disambiguate
the glock variables.

Fixes: 601ef0d52e96 ("gfs2: Force withdraw to replay journals and wait for it to finish")
Cc: stable@vger.kernel.org # v5.7+
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/util.c