Message ID | 20230510085820epcms2p899d5cfca9a0aca4bd6654d9d0189b6f8@epcms2p8 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3480359vqo; Wed, 10 May 2023 02:22:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4jnwWJ458iOPoUA7a7iGlqknClDzfhvQ9Rpp/M3bs2KTJnNdT61iye/1lDqOa80POgXEug X-Received: by 2002:a05:6a00:2d09:b0:63b:5c82:e209 with SMTP id fa9-20020a056a002d0900b0063b5c82e209mr24020165pfb.10.1683710519937; Wed, 10 May 2023 02:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683710519; cv=none; d=google.com; s=arc-20160816; b=n8TUhQ7Hi98asuaVnZ2A0tVH173Dr0DbKnIuwluaMKifUcaS+Nt5Fui9e0JaBmHk8R JhdgWy+SFZfRjAG3ZOqqkusYFEQ3H6jhM3MJqAqHgTT8LAVI1j5NboD+VYHVwcSn8aRg T1D9amuGfYerv1IfFl182emplTzRyTNvrre8ndoZSRdHH5SqNhVb3YhhnMOu7ZehIMP9 jDUd940FEjpArJCOMLcuZ4+bir20OqO4gu7cfqQPZoGCeVsmEGcYhx6RoP5dcfCG1Yuj IQgcIwtHgnoMEjXc4SX7l47AxiPPu7daO3C30UrOc10/iVz+x2C3zT6w+3meXaGMxEKk 6MGQ== 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:to:from :sender:reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=ZfhC85BvKxKIuur1CoeZsaWeIlAnBRlkMNE/o0TIGEU=; b=lINUc95u8blipffzZbWJSa4wyP7ng8MoNg9N5Vdx2mFh44GeUnZyKonlHGmsjNM8TF /9k+0x9ZeQjrMWgRDv1wfcIKCDtLKV3gJbi+d8/LtnyMXuPNKhJXcoz+nFlYTWs6SGXo CMPQb7c5QljoGdlaDidptOag1b/LgEbKCUk5PQciCjBIQsZMJhOeSwT6muRtEKQgMDUP my70iBIp7E0ocGDji4IyjWFrZz4W3vzUNR21UgB3baZ07OUlJuCiu54kXp0tEiZauMAA LLA3fKOCkG46VvreeaMErj5xKd4jFpiFqKQJT1KTFWehJM+hBNsrBQ7XWzyAzfO4JEce juJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=BNuUSbKP; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k189-20020a6384c6000000b00502f0410410si3519659pgd.472.2023.05.10.02.21.47; Wed, 10 May 2023 02:21:59 -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=BNuUSbKP; 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 S236829AbjEJI62 (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Wed, 10 May 2023 04:58:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236483AbjEJI60 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 10 May 2023 04:58:26 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C8BD12E for <linux-kernel@vger.kernel.org>; Wed, 10 May 2023 01:58:24 -0700 (PDT) Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230510085822epoutp01535714262ecf6126964473e60f05414c~dvIIgINYU2057320573epoutp01I for <linux-kernel@vger.kernel.org>; Wed, 10 May 2023 08:58:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230510085822epoutp01535714262ecf6126964473e60f05414c~dvIIgINYU2057320573epoutp01I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1683709102; bh=ZfhC85BvKxKIuur1CoeZsaWeIlAnBRlkMNE/o0TIGEU=; h=Subject:Reply-To:From:To:In-Reply-To:Date:References:From; b=BNuUSbKPs0guXiN6nW9GD9PbT17ucuEwPrqtqZ9w0U/OLfg9Gjf37ZJVDiLVlju9F 4Yu0KzlCNiRZ+d4Hh6ztEUy0UynxgXh4n/LSDotMqV4AnvKiFEVCn2LlZKnOXq3Ra/ 09i07CPwT9nF6WpxVxaSE2Up7tKZg1Im/CiG5R1w= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20230510085822epcas2p12468ee6a15f4aa3e73bbe3afef6270ba~dvIIGsWkw2929929299epcas2p18; Wed, 10 May 2023 08:58:22 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.68]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4QGTT95Bp6z4x9Q3; Wed, 10 May 2023 08:58:21 +0000 (GMT) X-AuditID: b6c32a47-e99fd70000002007-40-645b5cadb711 Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id FA.5A.08199.DAC5B546; Wed, 10 May 2023 17:58:21 +0900 (KST) Mime-Version: 1.0 Subject: [PATCH v2 10/14] block: blk-integrity: change how to find the number of integrity of bio Reply-To: j-young.choi@samsung.com Sender: Jinyoung CHOI <j-young.choi@samsung.com> From: Jinyoung CHOI <j-young.choi@samsung.com> To: Jinyoung CHOI <j-young.choi@samsung.com>, "axboe@kernel.dk" <axboe@kernel.dk>, "kbusch@kernel.org" <kbusch@kernel.org>, "hch@lst.de" <hch@lst.de>, "sagi@grimberg.me" <sagi@grimberg.me>, "jejb@linux.ibm.com" <jejb@linux.ibm.com>, "martin.petersen@oracle.com" <martin.petersen@oracle.com>, "johannes.thumshirn@wdc.com" <johannes.thumshirn@wdc.com>, "kch@nvidia.com" <kch@nvidia.com>, "willy@infradead.org" <willy@infradead.org>, "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <20230510084407epcms2p123f17696d3c30c749897eeaf2c4de684@epcms2p1> 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: <20230510085820epcms2p899d5cfca9a0aca4bd6654d9d0189b6f8@epcms2p8> Date: Wed, 10 May 2023 17:58:20 +0900 X-CMS-MailID: 20230510085820epcms2p899d5cfca9a0aca4bd6654d9d0189b6f8 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+NgFtrFJsWRmVeSWpSXmKPExsWy7bCmhe7amOgUg+ePNSxW3+1ns3h5SNNi 5eqjTBa9/VvZLBbd2MZk8bfrHpPFpEPXGC2eXp3FZLH3lrbF5V1z2CyWH//HZLHu9XsWi98/ 5rA58Hqcv7eRxWPzCi2Py2dLPTat6mTzm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uV1ftW98MZyc6bU9cdzHzvc1Op+3z2mrKn T1cosRRnJBpqMRcVJwIAz4+I5E0EAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230510084407epcms2p123f17696d3c30c749897eeaf2c4de684 References: <20230510084407epcms2p123f17696d3c30c749897eeaf2c4de684@epcms2p1> <CGME20230510084407epcms2p123f17696d3c30c749897eeaf2c4de684@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, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765498442253251247?= X-GMAIL-MSGID: =?utf-8?q?1765498442253251247?= |
Series |
Change the integrity configuration method in block
|
|
Commit Message
Jinyoung Choi
May 10, 2023, 8:58 a.m. UTC
The method of constructing a bip has been changed, the number of
segments can be obtained through bip_vcnt.
Cc: Christoph Hellwig <hch@lst.de>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jinyoung Choi <j-young.choi@samsung.com>
---
block/blk-integrity.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/block/blk-integrity.c b/block/blk-integrity.c index f97b7e8a6d4d..64407b412947 100644 --- a/block/blk-integrity.c +++ b/block/blk-integrity.c @@ -217,7 +217,6 @@ bool blk_integrity_merge_bio(struct request_queue *q, struct request *req, struct bio *bio) { int nr_integrity_segs; - struct bio *next = bio->bi_next; if (blk_integrity_bypass_check(req, bio)) return true; @@ -225,9 +224,7 @@ bool blk_integrity_merge_bio(struct request_queue *q, struct request *req, if (!__blk_integrity_mergeable(q, req, bio)) return false; - bio->bi_next = NULL; - nr_integrity_segs = blk_rq_count_integrity_sg(q, bio); - bio->bi_next = next; + nr_integrity_segs = bio_integrity(bio)->bip_vcnt; if (req->nr_integrity_segments + nr_integrity_segs > q->limits.max_integrity_segments)