From: Carlos Maiolino <cem@kernel.org>
To: linux-xfs@vger.kernel.org, Daejun Park <daejun7.park@samsung.com>
Cc: Christoph Hellwig <hch@lst.de>,
Dave Chinner <david@fromorbit.com>,
"Darrick J. Wong" <djwong@kernel.org>,
linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] xfs: wait for direct I/O before swapping extents
Date: Wed, 18 Nov 2026 09:58:53 +0100 [thread overview]
Message-ID: <179499233390.5574.1088700355736623145.b4-ty@kernel.org> (raw)
In-Reply-To: <20261110-xfs-swapext-dio-wait-v1-1-b8ccc5d5ef3c@samsung.com>
On Tue, 10 Nov 2026 09:38:17 +0900, Daejun Park wrote:
> An AIO direct write drops the iolock before its bios complete.
> XFS_IOC_SWAPEXT does not wait for it. The write can land in blocks that
> the swap moved to the temporary file. Once xfs_fsr frees them, the
> write corrupts whatever reuses them.
>
> Wait for direct I/O first, as exchange-range does.
>
> [...]
Applied to for-next, thanks!
[1/1] xfs: wait for direct I/O before swapping extents
commit: 844bc1167f1b2d19d9495a556599af24dc4468bd
Best regards,
--
Carlos Maiolino <cem@kernel.org>
prev parent reply other threads:[~2026-11-18 8:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 0:38 Daejun Park via B4 Relay
2026-11-11 15:12 ` Christoph Hellwig
2026-11-18 8:58 ` Carlos Maiolino [this message]
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=179499233390.5574.1088700355736623145.b4-ty@kernel.org \
--to=cem@kernel.org \
--cc=daejun7.park@samsung.com \
--cc=david@fromorbit.com \
--cc=djwong@kernel.org \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=stable@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
all inboxes | Powered by JetHome®