Message ID | 20190627181657.17808-4-marcelo.cerri@canonical.com |
---|---|
State | New |
Headers | show |
Series | LP: #1834499 - Block Layer Commits Requested in Azure Kernels (for the *generic* kernels) | expand |
diff --git a/block/bio.c b/block/bio.c index b1d7e1de7b1a..7dfa9acf1482 100644 --- a/block/bio.c +++ b/block/bio.c @@ -1238,7 +1238,8 @@ struct bio *bio_copy_user_iov(struct request_queue *q, if (ret) goto cleanup; } else { - zero_fill_bio(bio); + if (bmd->is_our_pages) + zero_fill_bio(bio); iov_iter_advance(iter, bio->bi_iter.bi_size); }