aboutsummaryrefslogtreecommitdiff
path: root/fs/gfs2/lops.h
diff options
context:
space:
mode:
authorGravatar Bob Peterson <rpeterso@redhat.com> 2021-05-19 14:54:02 -0400
committerGravatar Andreas Gruenbacher <agruenba@redhat.com> 2021-05-20 13:31:37 +0200
commitf5456b5d67cf812fd31fe3e130ca216b2e0908e5 (patch)
tree60b8d69ffbc466fe06b64ac3334c0ccd6b9cdd8e /fs/gfs2/lops.h
parentgfs2: fix a deadlock on withdraw-during-mount (diff)
downloadlinux-f5456b5d67cf812fd31fe3e130ca216b2e0908e5.tar.gz
linux-f5456b5d67cf812fd31fe3e130ca216b2e0908e5.tar.bz2
linux-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/lops.h')
-rw-r--r--fs/gfs2/lops.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/lops.h b/fs/gfs2/lops.h
index 31b6dd0d2e5d..f707601597dc 100644
--- a/fs/gfs2/lops.h
+++ b/fs/gfs2/lops.h
@@ -20,6 +20,7 @@ extern void gfs2_log_submit_bio(struct bio **biop, int opf);
extern void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh);
extern int gfs2_find_jhead(struct gfs2_jdesc *jd,
struct gfs2_log_header_host *head, bool keep_cache);
+extern void gfs2_drain_revokes(struct gfs2_sbd *sdp);
static inline unsigned int buf_limit(struct gfs2_sbd *sdp)
{
return sdp->sd_ldptrs;