From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B461C6FA82 for ; Fri, 9 Sep 2022 14:38:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231200AbiIIOiX (ORCPT ); Fri, 9 Sep 2022 10:38:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231479AbiIIOiW (ORCPT ); Fri, 9 Sep 2022 10:38:22 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6F6D979DB; Fri, 9 Sep 2022 07:38:21 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 641A468AA6; Fri, 9 Sep 2022 16:38:18 +0200 (CEST) Date: Fri, 9 Sep 2022 16:38:18 +0200 From: Christoph Hellwig To: "Alexander V. Buev" Cc: linux-block@vger.kernel.org, io-uring@vger.kernel.org, Jens Axboe , Christoph Hellwig , "Martin K . Petersen" , Pavel Begunkov , Chaitanya Kulkarni , Mikhail Malygin , linux@yadro.com Subject: Re: [PATCH v4 1/3] block: bio-integrity: add PI iovec to bio Message-ID: <20220909143818.GA10143@lst.de> References: <20220909122040.1098696-1-a.buev@yadro.com> <20220909122040.1098696-2-a.buev@yadro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220909122040.1098696-2-a.buev@yadro.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org 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.