linux/include
Jens Axboe 875f1d0769 iov_iter: add ITER_BVEC_FLAG_NO_REF flag
For ITER_BVEC, if we're holding on to kernel pages, the caller
doesn't need to grab a reference to the bvec pages, and drop that
same reference on IO completion. This is essentially safe for any
ITER_BVEC, but some use cases end up reusing pages and uncondtionally
dropping a page reference on completion. And example of that is
sendfile(2), that ends up being a splice_in + splice_out on the
pipe pages.

Add a flag that tells us it's fine to not grab a page reference
to the bvec pages, since that caller knows not to drop a reference
when it's done with the pages.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-03-18 10:44:48 -06:00
..
acpi ACPI updates for 5.1-rc1 2019-03-06 13:33:11 -08:00
asm-generic Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2019-03-10 14:46:56 -07:00
clocksource
crypto
drm drm next pull request for 5.1 2019-03-08 08:23:15 -08:00
dt-bindings This is the bulk of GPIO changes for the v5.1 cycle: 2019-03-08 10:09:53 -08:00
keys KEYS: user: Align the payload buffer 2019-02-22 10:11:19 -08:00
kvm
linux iov_iter: add ITER_BVEC_FLAG_NO_REF flag 2019-03-18 10:44:48 -06:00
math-emu
media media: include: fix several typos 2019-03-01 09:45:52 -05:00
memory
misc
net io_uring-2019-03-06 2019-03-08 14:48:40 -08:00
pcmcia
ras
rdma RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
scsi scsi: kill command serial number 2019-02-27 09:19:24 -05:00
soc IOMMU Updates for Linux v5.1 2019-03-10 12:29:52 -07:00
sound Char/Misc driver patches for 5.1-rc1 2019-03-06 14:18:59 -08:00
target
trace media updates for v5.1-rc1 2019-03-09 14:45:54 -08:00
uapi IOMMU Updates for Linux v5.1 2019-03-10 12:29:52 -07:00
video media updates for v5.1-rc1 2019-03-09 14:45:54 -08:00
xen