Commit f55adad6 authored by Keith Busch's avatar Keith Busch Committed by Jens Axboe
Browse files

block/bio: Do not zero user pages

We don't need to zero fill the bio if not using kernel allocated pages.

Fixes: f3587d76

 ("block: Clear kernel memory before copying to user") # v4.20-rc2
Reported-by: default avatarTodd Aiken <>
Cc: Laurence Oberman <>
Cc: Bart Van Assche <>
Tested-by: default avatarLaurence Oberman <>
Signed-off-by: default avatarKeith Busch <>
Signed-off-by: default avatarJens Axboe <>
parent 8b878ee2
......@@ -1261,6 +1261,7 @@ struct bio *bio_copy_user_iov(struct request_queue *q,
if (ret)
goto cleanup;
} else {
if (bmd->is_our_pages)
iov_iter_advance(iter, bio->bi_iter.bi_size);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment