Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp560028rwl; Wed, 12 Apr 2023 00:19:45 -0700 (PDT) X-Google-Smtp-Source: AKy350ZMqOJhnEQjTvuKOw3OTrr8s48LncRxaHKG8sgvm/2sq7YYJolG7W4MxYuxlZJBIEc2aNUm X-Received: by 2002:a17:90a:1fcd:b0:246:d1ae:5fce with SMTP id z13-20020a17090a1fcd00b00246d1ae5fcemr1362805pjz.35.1681283985003; Wed, 12 Apr 2023 00:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681283984; cv=none; d=google.com; s=arc-20160816; b=KWDIrkUvY++vNTSmR7F6Ds40llAC+K5nzi5HKiLp1N26S44lhn5UuzlVJujhYPzKdN kwvx5k3N/ByXte1/9SwjsRTjeA8Q/sk7itAQ3x0AALIjqB+iNxAc2Hxj95tWuJ6bmwpo GrsWNDn2UaQG+NpNZ/iA9FTIIvgiQJVV6Ami/Y8Jo9j2cb9o/M64bVSoCGRTtI5obXbW +d0wsTBRJHbh1qRWf3Xb4EeRgVKUlUNMWLXte13LlLbq7+VOi7VZaCFZODsY+M/ion5Z 8slpEeCDQutowDD+tyhy2kROLxlOZCKwFQ38KPvnSrFTYKcaI6k3bezAdC6sGrRARZyl gtVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:in-reply-to:cc:to:from :sender:reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=O/zeu0IMNnIo8BkHHfaGAMiYGuHwPxRRxQNOfP/rWFw=; b=pD7og8cHE3CeqROOaHG0kZN299wM+n4ssWWgZyMMMuFJRXKNpXdOb8uVeDJ7UBhagZ XF5+ATVGthqsaL/dhG0hw+B3G/1dNOP+m9i+BTAjDapIBuhoqC9swlL3ElhC4AQ9qrfB Myq8FiJX09L3s8ZN6j+3FkTSLVnxorWZvSOet7swvh0YXJkTseYuiPJFpcM/GxXETCRQ tnHqMsqsdqQmnLIrQD5V9srlgHBhHCPeam9/OvtLVLOu73yhjQhb713ChN7BsmhQL9ZB A0c3ddi+WcXOaljFlhHKVkBJrjDVVI5MZVcGhR6Hn8ZeeivkxbHml0GIwWlre1Jb3wmJ VBNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=mgdp2iKS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h8-20020a17090aa88800b0023fc361b03asi1167071pjq.96.2023.04.12.00.19.33; Wed, 12 Apr 2023 00:19:44 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=mgdp2iKS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229887AbjDLHMt (ORCPT + 99 others); Wed, 12 Apr 2023 03:12:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229889AbjDLHMr (ORCPT ); Wed, 12 Apr 2023 03:12:47 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0FB73584 for ; Wed, 12 Apr 2023 00:12:37 -0700 (PDT) Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230412071232epoutp01d5e26fb35a3601ce058d5ac1d8ec5583~VHnuotIwH1658516585epoutp01A for ; Wed, 12 Apr 2023 07:12:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230412071232epoutp01d5e26fb35a3601ce058d5ac1d8ec5583~VHnuotIwH1658516585epoutp01A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1681283552; bh=O/zeu0IMNnIo8BkHHfaGAMiYGuHwPxRRxQNOfP/rWFw=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=mgdp2iKSt8bdMFqwl9COg03VSvoyPx3BVJUIsD4igxzjfxFotEeUZV43d4jPGbO/K HSOIa7sQQfjg1aEkxe9uKveb7Iw297FpoCS3o0h3E2m8pTemiVhJ/wsN0KNoms8WE1 s0XuCGGvTRpnj5uxcB3ti+aAdhFbsJFWaixsuHZw= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20230412071231epcas2p2f6e82092c76730f33ac1214ba0b8508c~VHnt_Gkaf2003620036epcas2p2q; Wed, 12 Apr 2023 07:12:31 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.90]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4PxDRz0gSRz4x9Pq; Wed, 12 Apr 2023 07:12:31 +0000 (GMT) X-AuditID: b6c32a48-023fa700000025b2-3c-643659de9b0c Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 2E.1C.09650.ED956346; Wed, 12 Apr 2023 16:12:30 +0900 (KST) Mime-Version: 1.0 Subject: RE:(2) [PATCH 2/2] nvme-pci: fix metadata mapping length Reply-To: j-young.choi@samsung.com Sender: Jinyoung CHOI From: Jinyoung CHOI To: "hch@lst.de" CC: "kbusch@kernel.org" , "axboe@fb.com" , "sagi@grimberg.me" , "chaitanya.kulkarni@wdc.com" , "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "martin.petersen@oracle.com" X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <20230412065736.GB20550@lst.de> X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20230412071230epcms2p145d53bfc8e40eede25f282b80247218c@epcms2p1> Date: Wed, 12 Apr 2023 16:12:30 +0900 X-CMS-MailID: 20230412071230epcms2p145d53bfc8e40eede25f282b80247218c Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-CPGSPASS: Y X-CPGSPASS: Y X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLJsWRmVeSWpSXmKPExsWy7bCmqe69SLMUg09nrS3+7znGZjHr9msW i5eHNC1Wrj7KZDHp0DVGi8u75rBZzF/2lN1i+fF/TBbrXr9nceD0mNj8jt3j/L2NLB6bVnWy eWxeUu+x+2YDm8fHp7dYPPq2rGL0+LxJzqP9QDdTAGdUtk1GamJKapFCal5yfkpmXrqtkndw vHO8qZmBoa6hpYW5kkJeYm6qrZKLT4CuW2YO0IlKCmWJOaVAoYDE4mIlfTubovzSklSFjPzi Elul1IKUnALzAr3ixNzi0rx0vbzUEitDAwMjU6DChOyMifdWMBX8Zq1YemgSYwPjc5YuRg4O CQETif1HKrsYuTiEBHYwSix7v4sNJM4rICjxd4dwFyMnh7CAo0Tz/OtMILaQgJLEuTWzGEFK hAUMJG71moOE2QT0JH4umQHWKSIgK3FlRT3IRGaBz0wS/d/2sYHUSAjwSsxof8oCYUtLbF++ lRHE5hTQkfh+u5EZIq4h8WNZL5QtKnFz9Vt2GPv9sfmMELaIROu9s1A1ghIPfu6GiktKHDr0 lQ3iq3yJDQcCIcI1Em+XH4Aq0Ze41rER7AReAV+J3cuXgNksAqoS77/tYIWocZH4+3IPmM0s IC+x/e0cZpCRzAKaEut36UNMV5Y4cosFooJPouPwX3aYBxs2/sbK3jHvCRNEq5rEoiajCYzK sxCBPAvJqlkIqxYwMq9iFEstKM5NTy02KjCBR2tyfu4mRnA61fLYwTj77Qe9Q4xMHIyHGCU4 mJVEeH+4mKYI8aYkVlalFuXHF5XmpBYfYjQFenIis5Rocj4woeeVxBuaWBqYmJkZmhuZGpgr ifN+7FBOERJITyxJzU5NLUgtgulj4uCUamDa8HKWwCGe0juZIlr2ZxYuuddj9kYk5/Pxr7Ez V5ptmHA5YvaXowUfDpVVfFs4Y//f6aX3A5XMPJjCr9qYW1n3R9Z9OrKp7FHvhRVrjCqSuw4w LXGdoNHq2f1H64P16eUrnD6feH+Qn82getrUut3T7EqW8lz6OZ+5bMPml2+/3I41ysxqFzg0 aadkdAKvZeFV1t89bn++mm4q2dU2Z3/JV9VLXyo+27Ps+Vyb2OvBm8upZvX9jFO2WOD0W2kX PlpUiE7j7X7D/il58d/Y/T9OfL/k2J84NfzZxK9fRZQDT3+S7p386Xf1B4EZgbn31SUtrO79 0J726duKh1oZJ55dz9rFsfjkHuf279/7DTaYHlRiKc5INNRiLipOBABwqtrwMAQAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230412052443epcms2p836b669a12c4e81368bec2cd340656f73 References: <20230412065736.GB20550@lst.de> <20230412052443epcms2p836b669a12c4e81368bec2cd340656f73@epcms2p8> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED 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 >> 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. I agree with you. I think the problem is bio_integrity_add_page(). If it is modified, sg functions for blk-integrity should also be modified. If you think the blk-integrity modification is better, I will send an mail to block mailing after modifying it. Best Regards. Jinyoung.