diff options
author | Bob Peterson <rpeterso@redhat.com> | 2021-05-19 14:54:02 -0400 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2021-05-20 13:31:37 +0200 |
commit | f5456b5d67cf812fd31fe3e130ca216b2e0908e5 (patch) | |
tree | 60b8d69ffbc466fe06b64ac3334c0ccd6b9cdd8e /fs/gfs2/util.c | |
parent | 865cc3e9cc0b1d4b81c10d53174bced76decf888 (diff) | |
download | linux-stable-f5456b5d67cf812fd31fe3e130ca216b2e0908e5.tar.gz linux-stable-f5456b5d67cf812fd31fe3e130ca216b2e0908e5.tar.bz2 linux-stable-f5456b5d67cf812fd31fe3e130ca216b2e0908e5.zip |
gfs2: Clean up revokes on normal withdraws
Before this patch, the system ail lists were cleaned up if the logd
process withdrew, but on other withdraws, they were not cleaned up.
This included the cleaning up of the revokes as well.
This patch reorganizes things a bit so that all withdraws (not just logd)
clean up the ail lists, including any pending revokes.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/util.c')
-rw-r--r-- | fs/gfs2/util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/util.c b/fs/gfs2/util.c index 3e08027a6c81..f4325b44956d 100644 --- a/fs/gfs2/util.c +++ b/fs/gfs2/util.c @@ -131,6 +131,7 @@ static void signal_our_withdraw(struct gfs2_sbd *sdp) if (test_bit(SDF_NORECOVERY, &sdp->sd_flags) || !sdp->sd_jdesc) return; + gfs2_ail_drain(sdp); /* frees all transactions */ inode = sdp->sd_jdesc->jd_inode; ip = GFS2_I(inode); i_gl = ip->i_gl; |