block: never take page references for ITER_BVEC
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Jun 2019 13:49:28 +0000 (15:49 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 29 Jun 2019 15:47:32 +0000 (09:47 -0600)
commitb620743077e291ae7d0debd21f50413a8c266229
tree965cefe7b283e821cc9f288e9ded8ba0778f6a60
parentd7c8aa85ed204ccebf0c18f29b941d52b33deae3
block: never take page references for ITER_BVEC

If we pass pages through an iov_iter we always already have a reference
in the caller.  Thus remove the ITER_BVEC_FLAG_NO_REF and don't take
reference to pages by default for bvec backed iov_iters.

Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
drivers/block/loop.c
fs/io_uring.c
include/linux/uio.h