From: Ankit Kumar <ankit.kumar@samsung.com>
To: Jens Axboe <axboe@kernel.dk>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
Keith Busch <kbusch@kernel.org>
Cc: gost.dev@samsung.com, Ankit Kumar <ankit.kumar@samsung.com>,
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 [thread overview]
Message-ID: <20230908115233.261195-2-ankit.kumar@samsung.com> (raw)
In-Reply-To: <20230908115233.261195-1-ankit.kumar@samsung.com>
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 <ankit.kumar@samsung.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
---
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;
--
2.25.1
next prev parent reply other threads:[~2023-09-08 7:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20230908063508epcas5p12fbca2a5723fa518489cb223ba24ccae@epcas5p1.samsung.com>
2023-09-08 11:52 ` [PATCH v2 0/2] Small fixes for block t10-pi Ankit Kumar
[not found] ` <CGME20230908063510epcas5p46aa338154cc48041c5d28dbead88c97c@epcas5p4.samsung.com>
2023-09-08 11:52 ` Ankit Kumar [this message]
[not found] ` <CGME20230908063512epcas5p42b8a72d4001d041ed15ee559ee61f4c8@epcas5p4.samsung.com>
2023-09-08 11:52 ` [PATCH v2 2/2] block:t10-pi: remove duplicate module license Ankit Kumar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230908115233.261195-2-ankit.kumar@samsung.com \
--to=ankit.kumar@samsung.com \
--cc=axboe@kernel.dk \
--cc=gost.dev@samsung.com \
--cc=kbusch@kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®