+3
−1
Loading
mainline inclusion from mainline-v5.12-rc1 commit 977be012 bugzilla: https://gitee.com/openeuler/kernel/issues/IB7FJU Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=977be01273844626ddeef4a464b42b99418d76e6 -------------------------------- 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> Conflicts: block/bio.c [Commit c42bca92 ("bio: don't copy bvec for direct IO") add bio_iov_bvec_set to initialize bio.] Signed-off-by:
Li Lingfeng <lilingfeng3@huawei.com> Signed-off-by:
Li Nan <linan122@huawei.com>