On Fri, Sep 09, 2022 at 03:20:38PM +0300, Alexander V. Buev wrote: > Added functions to attach user PI iovec pages to bio and release this > pages via bio_integrity_free. Before I get into nitpicking on the nitty gritty details: what is the reason for pinning down the memory for the iovecs here? Other interfaces like the nvme passthrough code simply copy from user assuming that the amount of metadata passed will usually be rather small, and thus faster doing a copy.