On Tue, Sep 20, 2022 at 05:46:16PM +0300, Alexander V. Buev wrote: > Added functions to attach user PI iovec pages to bio and release this > pages via bio_integrity_free. I'd much prefer if for the first version we could just go down the copy_from/to_user route as mentioned below and avoid the extra complexity of the get_user_pages path. Once we get the interface right we can consider adding the get_user_pages version back if we have benchmarks for relevant workloads that justify it. In that case we'll also need into refactoring thing so that more code is shared with the bio data path.