From: Dave Hansen <dave.hansen@intel.com>
To: "Darrick J. Wong" <djwong@kernel.org>,
alexjlzheng@gmail.com, dave.hansen@linux.intel.com
Cc: brauner@kernel.org, linux-xfs@vger.kernel.org,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
Jinliang Zheng <alexjlzheng@tencent.com>
Subject: Re: [PATCH] iomap: move prefaulting out of hot write path
Date: Thu, 9 Oct 2025 08:15:00 -0700 [thread overview]
Message-ID: <486185f6-7da7-4fdc-9206-8f1eebd341cf@intel.com> (raw)
In-Reply-To: <20251009150125.GD6188@frogsfrogsfrogs>
On 10/9/25 08:01, Darrick J. Wong wrote:
> On Thu, Oct 09, 2025 at 05:08:51PM +0800, alexjlzheng@gmail.com wrote:
>> From: Jinliang Zheng <alexjlzheng@tencent.com>
>>
>> Prefaulting the write source buffer incurs an extra userspace access
>> in the common fast path. Make iomap_write_iter() consistent with
>> generic_perform_write(): only touch userspace an extra time when
>> copy_folio_from_iter_atomic() has failed to make progress.
>>
>> This patch is inspired by commit 665575cff098 ("filemap: move
>> prefaulting out of hot write path").
> Seems fine to me, but I wonder if dhansen has any thoughts about this
> patch ... which exactly mirrors one he sent eight months ago?
I don't _really_ care all that much. But, yeah, I would have expected
a little shout-out or something when someone copies the changelog and
code verbatim from another patch:
https://lore.kernel.org/lkml/20250129181753.3927F212@davehans-spike.ostc.intel.com/
and then copies a comment from a second patch I did.
But I guess I was cc'd at least. Also, if my name isn't on this one,
then I don't have to fix any of the bugs it causes. Right? ;)
Just one warning: be on the lookout for bugs in the area. The
prefaulting definitely does a good job of hiding bugs in other bits
of the code. The generic_perform_write() gunk seems to have uncovered
a bug or two.
Also, didn't Christoph ask you to make the comments wider the last
time Alex posted this? I don't think that got changed.
https://lore.kernel.org/lkml/aIt8BYa6Ti6SRh8C@infradead.org/
Overall, the change still seems as valid to me as it did when I wrote the
patch in the first place. Although it feels funny to ack my own
patch.
next prev parent reply other threads:[~2025-10-09 15:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-09 9:08 [PATCH] iomap: move prefaulting out of hot write path alexjlzheng
2025-10-09 15:01 ` Darrick J. Wong
2025-10-09 15:15 ` Dave Hansen [this message]
2025-10-10 2:04 ` Jinliang Zheng
-- strict thread matches above, loose matches on Subject: below --
2025-07-26 9:09 alexjlzheng
2025-07-27 22:10 ` Matthew Wilcox
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=486185f6-7da7-4fdc-9206-8f1eebd341cf@intel.com \
--to=dave.hansen@intel.com \
--cc=alexjlzheng@gmail.com \
--cc=alexjlzheng@tencent.com \
--cc=brauner@kernel.org \
--cc=dave.hansen@linux.intel.com \
--cc=djwong@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@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).