From: Mark Syms <mark.syms@citrix.com>
To: Andreas Gruenbacher <agruenba@redhat.com>
Cc: Mark Syms <mark.syms@citrix.com>,
gfs2@lists.linux.dev, Christoph Hellwig <hch@lst.de>
Subject: [PATCH v3 0/2] gfs2: Revalidate the cached writeback mapping after a punch
Date: Fri, 4 Dec 2026 16:08:50 +0000 [thread overview]
Message-ID: <cover.1796393524.git.mark.syms@citrix.com> (raw)
In-Reply-To: <20261202155751.690482-1-mark.syms@citrix.com>
gfs2 writeback reuses its cached mapping across a short-write punch and
reallocation, so the retried data goes to the freed blocks and the new
blocks keep stale contents. Patch 2 fixes that; patch 1 is Andreas's
punch_hole() error-path cleanup, which patch 2 builds on.
v3:
- Count allocations as well as deallocations in a u64 i_mapping_seq,
updated under i_rw_mutex where the inode's mapping changes: on
allocation, unstuffing, and at each transaction boundary of
punch_hole() (Andreas).
- Set the cookie in __gfs2_iomap_get(); check it in writeback only
(Andreas).
- Add patch 1 (Andreas).
v2:
- Refuse to reuse a cached IOMAP_HOLE (sashiko); add Fixes.
Andreas Gruenbacher (1):
gfs2: minor punch_hole error path cleanup
Mark Syms (1):
gfs2: Revalidate the cached writeback mapping after a punch
fs/gfs2/bmap.c | 53 ++++++++++++++++++++++++++++++++++++++++--------
fs/gfs2/incore.h | 1 +
fs/gfs2/super.c | 1 +
3 files changed, 46 insertions(+), 9 deletions(-)
--
2.56.0
next prev parent reply other threads:[~2026-12-04 16:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 14:18 [PATCH] gfs2: Revalidate the cached writeback mapping after a punch Mark Syms
2026-12-02 14:40 ` sashiko-bot
2026-12-02 15:57 ` [PATCH v2] " Mark Syms
2026-12-02 20:54 ` Andreas Gruenbacher
2026-12-04 16:08 ` Mark Syms [this message]
2026-12-04 16:08 ` [PATCH v3 1/2] gfs2: minor punch_hole error path cleanup Mark Syms
2026-12-04 16:37 ` sashiko-bot
2026-12-04 16:08 ` [PATCH v3 2/2] gfs2: Revalidate the cached writeback mapping after a punch Mark Syms
2026-12-04 17:11 ` sashiko-bot
2026-12-04 16:26 ` [PATCH v3 0/2] " Andreas Gruenbacher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1796393524.git.mark.syms@citrix.com \
--to=mark.syms@citrix.com \
--cc=agruenba@redhat.com \
--cc=gfs2@lists.linux.dev \
--cc=hch@lst.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.