]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2688dc74a22e0948a5d00282dc4fb34bc7c674ab
treefd719c39aec963f3da5f658912ac0421ec04fb85
parent4931b82c1a834ed492fd8b46e66665b797016ca3
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