]> git.hungrycats.org Git - linux/commit
gfs2: Don't forget to complete delayed withdraw
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 26 Jan 2024 10:49:44 +0000 (11:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:11 +0000 (09:49 +0200)
commitf36755ecc827d1570333b4ae3e40a4bf96e9269f
tree3e6592b192e2c402abcddb153c36be2a394b125c
parentd791263e432cb288edcc4aa31d1c917a0a103500
gfs2: Don't forget to complete delayed withdraw

[ Upstream commit b01189333ee91c1ae6cd96dfd1e3a3c2e69202f0 ]

Commit fffe9bee14b0 ("gfs2: Delay withdraw from atomic context")
switched from gfs2_withdraw() to gfs2_withdraw_delayed() in
gfs2_ail_error(), but failed to then check if a delayed withdraw had
occurred.  Fix that by adding the missing check in __gfs2_ail_flush(),
where the spin locks are already dropped and a withdraw is possible.

Fixes: fffe9bee14b0 ("gfs2: Delay withdraw from atomic context")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/gfs2/glops.c