linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joanne Koong <joannelkoong@gmail.com>
To: brauner@kernel.org
Cc: bfoster@redhat.com, hch@infradead.org, djwong@kernel.org,
	linux-fsdevel@vger.kernel.org
Subject: [PATCH v4 0/1] vfs-6.19.iomap commit 51311f045375 fixup
Date: Fri, 31 Oct 2025 14:13:08 -0700	[thread overview]
Message-ID: <20251031211309.1774819-1-joannelkoong@gmail.com> (raw)

This fixes the race that was reported by Brian in [1]. This fix was locally
verified by running the repro (running generic/051 in a loop on an xfs
filesystem with 1k block size).

Thanks,
Joanne

[1] https://lore.kernel.org/linux-fsdevel/20250926002609.1302233-1-joannelkoong@gmail.com/T/#t 

Changelog:
v3 -> v4:
* Drop rename patch
* Improve comment wording about why a bias is needed

v2 -> v3:
* Fix the race by adding a bias instead of returning from iomap_read_end()
early.

v3: https://lore.kernel.org/linux-fsdevel/20251028181133.1285219-1-joannelkoong@gmail.com/
v2: https://lore.kernel.org/linux-fsdevel/20251027181245.2657535-1-joannelkoong@gmail.com/
v1: https://lore.kernel.org/linux-fsdevel/20251024215008.3844068-1-joannelkoong@gmail.com/#t

Joanne Koong (1):
  iomap: fix race when reading in all bytes of a folio

 fs/iomap/buffered-io.c | 40 ++++++++++++++++++++++++++++++++++++++--
 1 file changed, 38 insertions(+), 2 deletions(-)

-- 
2.47.3


             reply	other threads:[~2025-10-31 21:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-31 21:13 Joanne Koong [this message]
2025-10-31 21:13 ` [PATCH v4 1/1] iomap: fix race when reading in all bytes of a folio Joanne Koong
2025-11-05 11:57 ` [PATCH v4 0/1] vfs-6.19.iomap commit 51311f045375 fixup Christian Brauner

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=20251031211309.1774819-1-joannelkoong@gmail.com \
    --to=joannelkoong@gmail.com \
    --cc=bfoster@redhat.com \
    --cc=brauner@kernel.org \
    --cc=djwong@kernel.org \
    --cc=hch@infradead.org \
    --cc=linux-fsdevel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).