]> git.proxmox.com Git - mirror_spl.git/commit
Restructure uio to accommodate bio_vec
authorChunwei Chen <tuxoko@gmail.com>
Thu, 30 Jul 2015 14:19:01 +0000 (22:19 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 24 Aug 2015 17:10:21 +0000 (10:10 -0700)
commitae89cf0f34de323c4a7c39bfd9b906acc2635a87
tree2be70be0dcda560ac429b13d040447a3922f68d4
parentebc2c9374bde0c53837e7c909809697088615a88
Restructure uio to accommodate bio_vec

Starting from Linux 4.1, bio_vec will be allowed to pass into filesystem via
iter_read/iter_write, so we add a bio_vec field in uio_t to hold it, and use
UIO_BVEC in segflg to determine which "vec".

Also, to be consistent to newer kernel, we make iovec and bio_vec immutable,
and make uio act as an iterator with the new uio_skip field indicating number
of bytes to skip in the first segment.

Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue zfsonlinux/zfs#3511
Issue zfsonlinux/zfs#3640
Closes #468
include/sys/uio.h