From patchwork Fri Sep 8 11:52:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankit Kumar X-Patchwork-Id: 13377207 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 73D50EE57E0 for ; Fri, 8 Sep 2023 07:41:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237982AbjIHHla (ORCPT ); Fri, 8 Sep 2023 03:41:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236986AbjIHHl3 (ORCPT ); Fri, 8 Sep 2023 03:41:29 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80DD31BD2 for ; Fri, 8 Sep 2023 00:41:24 -0700 (PDT) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20230908074122epoutp04436c6251b91d6c21c322aaee776a8b12~C3IcJpcRy2756127561epoutp041 for ; Fri, 8 Sep 2023 07:41:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20230908074122epoutp04436c6251b91d6c21c322aaee776a8b12~C3IcJpcRy2756127561epoutp041 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1694158882; bh=5nnYH4bzmD+WGjO/Clg8fuD1bDH4eamc7G31VCFfHEk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WObHQC+/A0adM4XXj6sLP7yIWYdE51gPMbqG7WP+YTmJNwf4yCmPakRDCTXVYkXUo 5xY8dsP1UOIZ0IOYkfdh/Dp6PbaDc5l7mKh5xVe9fSpCstbLMM/gsJ5/L2e7EsvU4G j16vidHeJvmVv4skm4LPQ3gz2pVozS34wkf8E+Mo= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20230908074122epcas5p1a485c69ad14ec0e66649dfeb9963cbe1~C3Ib3KuY10093400934epcas5p1d; Fri, 8 Sep 2023 07:41:22 +0000 (GMT) Received: from epsmgec5p1-new.samsung.com (unknown [182.195.38.180]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Rhp2S3MqVz4x9Pp; Fri, 8 Sep 2023 07:41:20 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmgec5p1-new.samsung.com (Symantec Messaging Gateway) with SMTP id 1D.FB.19094.020DAF46; Fri, 8 Sep 2023 16:41:20 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20230908063510epcas5p46aa338154cc48041c5d28dbead88c97c~C2OpCj5ll2066220662epcas5p4U; Fri, 8 Sep 2023 06:35:10 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230908063510epsmtrp1ad977c9cbfd52b5399318c4f1c2d2f85~C2OpB2Ft12348123481epsmtrp1C; Fri, 8 Sep 2023 06:35:10 +0000 (GMT) X-AuditID: b6c32a50-39fff70000004a96-4b-64fad0200151 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 78.1E.08788.E90CAF46; Fri, 8 Sep 2023 15:35:10 +0900 (KST) Received: from unvme-desktop.sa.corp.samsungelectronics.net (unknown [107.99.41.39]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230908063509epsmtip1a0e61af5359bf1954bcbbacb17be6c72~C2On9_ip63145631456epsmtip1U; Fri, 8 Sep 2023 06:35:09 +0000 (GMT) From: Ankit Kumar To: Jens Axboe , "Martin K. Petersen" , Keith Busch Cc: gost.dev@samsung.com, Ankit Kumar , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] block:t10-pi: remove redundant Type2 check during t10 PI verify Date: Fri, 8 Sep 2023 17:22:30 +0530 Message-Id: <20230908115233.261195-2-ankit.kumar@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230908115233.261195-1-ankit.kumar@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJsWRmVeSWpSXmKPExsWy7bCmlq7ChV8pBm/+S1qsufKb3WL13X42 i5sHdjJZTDp0jdFi7y1ti8u75rBZLD/+j8mB3ePy2VKPTas62Tw+Pr3F4tG3ZRWjx+dNcgGs Udk2GamJKalFCql5yfkpmXnptkrewfHO8aZmBoa6hpYW5koKeYm5qbZKLj4Bum6ZOUBHKCmU JeaUAoUCEouLlfTtbIryS0tSFTLyi0tslVILUnIKTAr0ihNzi0vz0vXyUkusDA0MjEyBChOy M042nmYs2MpW8bLpJ3MD4xzWLkZODgkBE4nDHZ+Yuhi5OIQE9jBKTN22gBXC+cQo8fz+RmYI 5xujxO3Hv5lhWg7uamaESOxllGib0soG4XQySSyY950JpIpNQFvi1dsbYB0iAmUSbx7uBLOZ BWokOu/NAqsRFoiU2Nf5GcxmEVCVWLJxDQuIzStgK9Ez+yQ7xDZ5iZmXvoPZnAJ2Eg8XHWCD qBGUODnzCQvETHmJ5q2zwU6VEHjELtF8bhobRLOLRPe7G0wQtrDEq+NboIZKSbzsb4OysyU2 PfwJVVMgceRFL9Sb9hKtp/qBbA6gBZoS63fpQ4RlJaaeWscEsZdPovf3E6hWXokd82BsVYm/ 926zQNjSEjffXYWyPSSeNC9mgQTWREaJ3+cmsUxgVJiF5J9ZSP6ZhbB6ASPzKkap1ILi3PTU ZNMCQ9281HJ4PCfn525iBCdNrYAdjKs3/NU7xM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y87hSFjvt+0yQ/v dpn/Otm89M98tnU/GQuuv9/95eL6U/957dwOZtRte8T5im29ov1fvd2eD96wn9hsbmgU5sPm 5LNlratoKrtbf7Pzmx67UheTh4FKhm3bN2k1aJ6WmHLeIDBy/QYJzdptLIvuTa4vFfYQkdtR tMRFJWyXyGKpn2uTZXaJtzeEbc/OfFsRcf5lhPX/Gd7sZw6Zzr3VvHnVfn3HCk6DgODPVfkH r2iLqTOE6B/92vu1X+vi860G0bbcqh+KdscuyP50cv03626/Vx9/x6yNVhFttTK/1ce26EhA a3GY+lyfi4pz3VakeHB0dXza1V3imCQSZnpagSfMyXOhvBJLcUaioRZzUXEiADhUEwjYAgAA X-CMS-MailID: 20230908063510epcas5p46aa338154cc48041c5d28dbead88c97c X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230908063510epcas5p46aa338154cc48041c5d28dbead88c97c References: <20230908115233.261195-1-ankit.kumar@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org T10_PI_TYPE2_PROTECTION is neither used to generate nor verify crc and ip. This remained since T10 PI code was moved out of SCSI. Signed-off-by: Ankit Kumar Reviewed-by: Martin K. Petersen --- block/t10-pi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/block/t10-pi.c b/block/t10-pi.c index 914d8cddd43a..bf0bba01417f 100644 --- a/block/t10-pi.c +++ b/block/t10-pi.c @@ -64,8 +64,7 @@ static blk_status_t t10_pi_verify(struct blk_integrity_iter *iter, struct t10_pi_tuple *pi = iter->prot_buf; __be16 csum; - if (type == T10_PI_TYPE1_PROTECTION || - type == T10_PI_TYPE2_PROTECTION) { + if (type == T10_PI_TYPE1_PROTECTION) { if (pi->app_tag == T10_PI_APP_ESCAPE) goto next; From patchwork Fri Sep 8 11:52:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankit Kumar X-Patchwork-Id: 13377208 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 A0B7BEE57E1 for ; Fri, 8 Sep 2023 07:41:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240521AbjIHHlj (ORCPT ); Fri, 8 Sep 2023 03:41:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235961AbjIHHlg (ORCPT ); Fri, 8 Sep 2023 03:41:36 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB4E81990 for ; Fri, 8 Sep 2023 00:41:28 -0700 (PDT) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230908074127epoutp01fa05fe9843ba653b2e963e52db9c026c~C3IgocoOf2390223902epoutp01- for ; Fri, 8 Sep 2023 07:41:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230908074127epoutp01fa05fe9843ba653b2e963e52db9c026c~C3IgocoOf2390223902epoutp01- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1694158887; bh=IZ9jCFqwFNiYYg2ZEJwOHCgy8Fz2FKuFY/N9dF4FW9Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tFXJvuiIhLy/yiI9haGJ5tszzO2RECvvEx8HZhxHWFY3qmFb2rex0FKpkxCbOnIJi 0fru/6OB9698psf/uHMsiDiY+Yh52sAR7ok5fhyBYodxmip8PJsn3sOANJjJoWyBJU 7Q5DpkszbgOLlFpRxghjP9Vb6/v+xkQlP6KXUAT4= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20230908074126epcas5p3bb2add950c0441b38e343aea29436955~C3IgbGJJu2319023190epcas5p3i; Fri, 8 Sep 2023 07:41:26 +0000 (GMT) Received: from epsmgec5p1new.samsung.com (unknown [182.195.38.177]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4Rhp2X4P8Cz4x9Q9; Fri, 8 Sep 2023 07:41:24 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmgec5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 7E.CC.09023.320DAF46; Fri, 8 Sep 2023 16:41:23 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20230908063512epcas5p42b8a72d4001d041ed15ee559ee61f4c8~C2Oqlnxa-2265422654epcas5p4F; Fri, 8 Sep 2023 06:35:12 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230908063512epsmtrp2e0bdb05b5181d7b786961be972e8ed84~C2Oqk_ZPz0270802708epsmtrp2b; Fri, 8 Sep 2023 06:35:12 +0000 (GMT) X-AuditID: b6c32a44-c7ffa7000000233f-1a-64fad0236f63 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id C8.6E.18916.F90CAF46; Fri, 8 Sep 2023 15:35:11 +0900 (KST) Received: from unvme-desktop.sa.corp.samsungelectronics.net (unknown [107.99.41.39]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230908063510epsmtip17a6a54675047af2fb769127beb435249~C2Opcd3DV2661226612epsmtip1Q; Fri, 8 Sep 2023 06:35:10 +0000 (GMT) From: Ankit Kumar To: Jens Axboe , "Martin K. Petersen" , Keith Busch Cc: gost.dev@samsung.com, Ankit Kumar , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] block:t10-pi: remove duplicate module license Date: Fri, 8 Sep 2023 17:22:31 +0530 Message-Id: <20230908115233.261195-3-ankit.kumar@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230908115233.261195-1-ankit.kumar@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnk+LIzCtJLcpLzFFi42LZdlhTXVf5wq8Ug4m3tSzWXPnNbrH6bj+b xc0DO5ksJh26xmix95a2xeVdc9gslh//x+TA7nH5bKnHplWdbB4fn95i8ejbsorR4/MmuQDW qGybjNTElNQihdS85PyUzLx0WyXv4HjneFMzA0NdQ0sLcyWFvMTcVFslF58AXbfMHKAjlBTK EnNKgUIBicXFSvp2NkX5pSWpChn5xSW2SqkFKTkFJgV6xYm5xaV56Xp5qSVWhgYGRqZAhQnZ GV93T2UpeM5S0XBuL2sDYx9LFyMnh4SAicSmzYuAbC4OIYHdjBI3vsxghnA+MUr8/zoVwWn9 MAeu5d7LFiaIxE5GiVOtZ6GcTiaJywsfsoFUsQloS7x6e4MZxBYRKJN483AnmM0sUCPReW8W E4gtLOAq0bX7PzuIzSKgKnFo5wtWEJtXwFZizYM3zBDb5CVmXvoOVsMpYCfxcNEBNogaQYmT M5+wQMyUl2jeOhvsVAmBe+wS237sYIJodpG4928f1NnCEq+Ob2GHsKUkPr/bywZhZ0tsevgT qr5A4siLXqjF9hKtp/qBbA6gBZoS63fpQ4RlJaaeWscEsZdPovf3E6hWXokd82BsVYm/925D rZWWuPnuKpTtIfGo9SQ0SCcySnz7+pd9AqPCLCT/zELyzyyE1QsYmVcxSqYWFOempyabFhjm pZbDozk5P3cTIzhlarnsYLwx/5/eIUYmDsZDjBIczEoivKtFfqUI8aYkVlalFuXHF5XmpBYf YjQFBvhEZinR5Hxg0s4riTc0sTQwMTMzM7E0NjNUEud93To3RUggPbEkNTs1tSC1CKaPiYNT qo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kRf2r1Ibw8xzX7ylvEn8ZV8HwVDX5I3d2iXbASQcX/Zi8BoeMUxxqegG/ GFf83brL4DiHQ9HXWKbJzSz7eNl+l97sPfjKJ34l6yqHCJX4NV2xnlXbG/vNL2SK7TjzPNVp +mauCwIJ+xwM1Xece+ztWNpco7WxTc1J3tKuf6LT+W/XNt4R4JGzuGW2b9nZSrkp7gwxnyYa tgnvTtuus43Z2/3XM574pZ+O8eUXarPP7Nx4IslDiaU4I9FQi7moOBEAhT75U9ICAAA= X-CMS-MailID: 20230908063512epcas5p42b8a72d4001d041ed15ee559ee61f4c8 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230908063512epcas5p42b8a72d4001d041ed15ee559ee61f4c8 References: <20230908115233.261195-1-ankit.kumar@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Remove duplicate MODULE_LICENSE("GPL") from t10-pi.c Fixes: a7d4383f17e1 ("block: add pi for extended integrity") Signed-off-by: Ankit Kumar Reviewed-by: Martin K. Petersen --- block/t10-pi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/t10-pi.c b/block/t10-pi.c index bf0bba01417f..042f21b0e2e5 100644 --- a/block/t10-pi.c +++ b/block/t10-pi.c @@ -471,4 +471,3 @@ const struct blk_integrity_profile ext_pi_type3_crc64 = { EXPORT_SYMBOL_GPL(ext_pi_type3_crc64); MODULE_LICENSE("GPL"); -MODULE_LICENSE("GPL");