]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gfs2: fix address space truncation during withdraw
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 3 Apr 2026 12:42:18 +0000 (14:42 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 7 Apr 2026 20:19:59 +0000 (22:19 +0200)
commitf4e4c4e6acdc20a9065064dd164db52e2e0d44ad
tree211aaebfbecaae62f8dd4806e8fdf6cc02ff6c7d
parent7d2da6ed172680a7ef06acfe3e44a2326977573f
gfs2: fix address space truncation during withdraw

When a withdrawn filesystem's inodes are being evicted, the address spaces of
those inodes still need to be truncated but we can no longer start new
transactions.  We still don't want gfs2_invalidate_folio() to race with
gfs2_log_flush(), so take a read lock on sdp->sd_log_flush_lock in that case.
(It may not be obvious, but gfs2_invalidate_folio() is a jdata-only address
space operation.)

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/log.c
fs/gfs2/super.c