On Tue, Feb 02, 2021 at 11:54:10PM +0800, Ming Lei wrote: > bio_init() clears bio instance, so the bvec index has to be set after > bio_init(), otherwise bio->bi_io_vec may be leaked. Yeah, I've got exactly the same test sitting here as part of a larger series: Reviewed-by: Christoph Hellwig <hch@xxxxxx>