diff options
author | Ming Lei <ming.lei@redhat.com> | 2019-04-24 13:01:46 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-04-24 16:06:04 +0200 |
commit | 0257c0ed5ea3de3e32cb322852c4c40bc09d1b97 (patch) | |
tree | aa72c195716985cd0c83e50308a5212c1c57307a /drivers/md/bcache/request.c | |
parent | block: clarify that bio_add_page() and related helpers can add multi pages (diff) | |
download | linux-0257c0ed5ea3de3e32cb322852c4c40bc09d1b97.tar.xz linux-0257c0ed5ea3de3e32cb322852c4c40bc09d1b97.zip |
block: don't run get_page() on pages from non-bvec iov iter
The refcount has been increased for pages retrieved from non-bvec iov iter
via __bio_iov_iter_get_pages(), so don't need to do that again.
Otherwise, IO pages are leaked easily.
Cc: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Fixes: 7321ecbfc7cf ("block: change how we get page references in bio_iov_iter_get_pages")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/request.c')
0 files changed, 0 insertions, 0 deletions