Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp545017rwl; Wed, 12 Apr 2023 00:03:53 -0700 (PDT) X-Google-Smtp-Source: AKy350bU+ZvYpKQDo/uahy5xnMJg9QHP132XPpZJwjeQPZAeP173WPVA/dAGp1AJZrbAh7slVqJs X-Received: by 2002:a17:902:d192:b0:1a6:5333:bf6a with SMTP id m18-20020a170902d19200b001a65333bf6amr5954602plb.12.1681283033519; Wed, 12 Apr 2023 00:03:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681283033; cv=none; d=google.com; s=arc-20160816; b=CZ3EAwu2rBm3vaY8tsec2rJbDSaufEN0MdpUt25DN1tFZDeX8atvXy+9//q3LxBTAC qVCUQW4OExCAT+pdSiPEte/qg6PcpyHZNCRdN5x0y0Yo+AKDe6q2Flz141fWehHVM5Yc j23YWMzqMbbjxgWuMA3XY/iVX8P+4vr882zwq4VhNOGRNGUk5XU1aUPULSK4xTNPFBN/ pkLRxp+JkcA0YeWRjySHk8KnSQXAZnm4IxmTlzbL+gICKZzost0Zes4PMYy40sRCJH2y k8dSbsh1ff8GLIZwfEcMXYQ/YBlXq3JVVLwJ4IEPVqWugZ0rsmlczwIlv1CkQKXwz1Rm 43vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=X+B9hmCNQRFOAldVOsQen2RDYLT06PehCxRAWkH/zp0=; b=ygWrx7L88xKiDnMNr4jeYOe8U3YyF2qd0Gtf/QGuWeu3+kj+LsVNy7xOtA2JX7NoHI DW6VsefEfxzag5BGe5SzsMbABKTIy6BH4A4CFHeO081RUsSFajWOdF5eaz2Ke+fk4cIb 2lVe5LuNbS2f+jbaxDh4voYza84YEl0uKmWtkat+Ai9U2DyGoFSAc5plhPzOFjZ0EPsS LteFEVDaHa0A5B5yShX3xCOlDYqd//vvSQZ8PghQAqmRBY2Kfqu20WXNlDJqmUC3nJEg MR0glA+/vF9oux5GOpVw1yWeQPpxgLQv7tUgN9qnA4OxtweGJoN+j/EiCj1W2wPPtkb0 METg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a654d46000000b005137bf7e2d3si16028046pgt.582.2023.04.12.00.03.41; Wed, 12 Apr 2023 00:03:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229809AbjDLG5l (ORCPT + 99 others); Wed, 12 Apr 2023 02:57:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229769AbjDLG5l (ORCPT ); Wed, 12 Apr 2023 02:57:41 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EC775260 for ; Tue, 11 Apr 2023 23:57:40 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id D18CC68AA6; Wed, 12 Apr 2023 08:57:36 +0200 (CEST) Date: Wed, 12 Apr 2023 08:57:36 +0200 From: "hch@lst.de" To: Jinyoung CHOI Cc: "kbusch@kernel.org" , "axboe@fb.com" , "hch@lst.de" , "sagi@grimberg.me" , "chaitanya.kulkarni@wdc.com" , "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" , martin.petersen@oracle.com Subject: Re: [PATCH 2/2] nvme-pci: fix metadata mapping length Message-ID: <20230412065736.GB20550@lst.de> References: <20230412052443epcms2p836b669a12c4e81368bec2cd340656f73@epcms2p8> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230412052443epcms2p836b669a12c4e81368bec2cd340656f73@epcms2p8> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 12, 2023 at 02:24:43PM +0900, Jinyoung CHOI wrote: > Even if the memory allocated for integrity is physically continuous, > struct bio_vec is composed separately for each page size. > In order not to use the blk_rq_map_integrity_sg(), the length of the > DMA mapping should be the total size of integrity payload. Hmm, looking outside the bio_vec is pretty nasty. I think the problem here is that bio_integrity_add_page should just add to the existing bvec, similar to bio_add_page and friends.