[PATCH 02/10] block: copy bip_max_vcnt vecs instead of bip_vcnt during clone

Christoph Hellwig hch at lst.de
Sat Apr 27 00:03:31 PDT 2024


On Fri, Apr 26, 2024 at 12:09:35AM +0530, Kanchan Joshi wrote:
> From: Anuj Gupta <anuj20.g at samsung.com>
> 
> If bio_integrity_copy_user is used to process the meta buffer, bip_max_vcnt
> is one greater than bip_vcnt. In this case bip_max_vcnt vecs needs to be
> copied to cloned bip.

Can you explain this a bit more?  The clone should only allocate what
is actually used, so this leaves be a bit confused.




More information about the Linux-nvme mailing list