From: Jens Axboe <axboe@kernel.dk>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
Christian Brauner <brauner@kernel.org>
Subject: [GIT PULL] Turn single vector imports into ITER_UBUF
Date: Fri, 21 Apr 2023 10:53:08 -0600 [thread overview]
Message-ID: <f16053ea-d3b8-a8a2-0178-3981fea5a656@kernel.dk> (raw)
Hi Linus,
This series turns singe vector imports into ITER_UBUF, rather than
ITER_IOVEC. The former is more trivial to iterate and advance, and hence
a bit more efficient. From some very unscientific testing, ~60% of all
iovec imports are single vector.
One fixup patch from Josh since this was last posted, fixing a UACCESS
complaint that was due to the compiler optimization gone wrong where it
moves user_access_begin() outside of copy_compat_iovec_from_user().
This has been in linux-next for about a month without any complaints,
outside of the above mentioned UACCESS warning.
Please pull for 6.4-rc1!
The following changes since commit 3a93e40326c8f470e71d20b4c42d36767450f38f:
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm (2023-03-27 12:22:45 -0700)
are available in the Git repository at:
git://git.kernel.dk/linux.git tags/iter-ubuf.2-2023-04-21
for you to fetch changes up to 50f9a76ef127367847cf62999c79304e48018cfa:
iov_iter: Mark copy_compat_iovec_from_user() noinline (2023-04-12 10:46:48 -0600)
----------------------------------------------------------------
iter-ubuf.2-2023-04-21
----------------------------------------------------------------
Jens Axboe (11):
block: ensure bio_alloc_map_data() deals with ITER_UBUF correctly
iov_iter: add iter_iovec() helper
IB/hfi1: check for user backed iterator, not specific iterator type
IB/qib: check for user backed iterator, not specific iterator type
ALSA: pcm: check for user backed iterator, not specific iterator type
iov_iter: add iter_iov_addr() and iter_iov_len() helpers
iov_iter: remove iov_iter_iovec()
iov_iter: set nr_segs = 1 for ITER_UBUF
iov_iter: overlay struct iovec and ubuf/len
iov_iter: convert import_single_range() to ITER_UBUF
iov_iter: import single vector iovecs as ITER_UBUF
Josh Poimboeuf (1):
iov_iter: Mark copy_compat_iovec_from_user() noinline
block/blk-map.c | 7 +--
drivers/infiniband/hw/hfi1/file_ops.c | 10 ++--
drivers/infiniband/hw/qib/qib_file_ops.c | 4 +-
drivers/net/tun.c | 3 +-
drivers/vhost/scsi.c | 2 +-
fs/btrfs/file.c | 11 ++--
fs/fuse/file.c | 2 +-
fs/read_write.c | 11 ++--
include/linux/uio.h | 57 ++++++++++++++------
io_uring/net.c | 4 +-
io_uring/rw.c | 35 ++++++-------
lib/iov_iter.c | 89 +++++++++++++++++++++-----------
mm/madvise.c | 9 ++--
sound/core/pcm_native.c | 26 ++++++----
14 files changed, 165 insertions(+), 105 deletions(-)
--
Jens Axboe
next reply other threads:[~2023-04-21 16:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-21 16:53 Jens Axboe [this message]
2023-04-24 18:47 ` [GIT PULL] Turn single vector imports into ITER_UBUF pr-tracker-bot
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=f16053ea-d3b8-a8a2-0178-3981fea5a656@kernel.dk \
--to=axboe@kernel.dk \
--cc=brauner@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=torvalds@linux-foundation.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).