On Tue, Nov 21, 2023 at 4:11 AM Keith Busch <kbusch@xxxxxxxx> wrote: > > From: Keith Busch <kbusch@xxxxxxxxxx> > > Passthrough commands that utilize metadata currently bounce the user > space buffer through the kernel. Add support for mapping user space > directly so that we can avoid this costly overhead. This is similiar to Nit: s/similiar/similar > /** > * bio_integrity_free - Free bio integrity payload > * @bio: bio containing bip to be freed > @@ -105,6 +136,8 @@ void bio_integrity_free(struct bio *bio) > > if (bip->bip_flags & BIP_BLOCK_INTEGRITY) > kfree(bvec_virt(bip->bip_vec)); > + else if (bip->bip_flags & BIP_INTEGRITY_USER) > + bio_integrity_unmap_user(bip);; Nit: extra semicolon here -- Anuj Gupta