block: mark the bio as cloned in bio_iov_bvec_set
authorChristoph Hellwig <hch@lst.de>
Tue, 2 Feb 2021 17:19:27 +0000 (18:19 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Feb 2021 15:33:16 +0000 (08:33 -0700)
commit977be01273844626ddeef4a464b42b99418d76e6
treefd719c39aec963f3da5f658912ac0421ec04fb85
parented97ce5e1daf26d456760443fc89dc14d2b677e5
block: mark the bio as cloned in bio_iov_bvec_set

bio_iov_bvec_set clones the bio_vecs from the iter, and thus should be
treated like a cloned bio in every respect.  That also includes not
touching bi_max_vecs as that is a property of the bio allocation and not
its current payload.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c