From: Muneendra <muneendra.kumar@broadcom.com>
To: linux-scsi@vger.kernel.org, michael.christie@oracle.com, hare@suse.de
Cc: jsmart2021@gmail.com, emilne@redhat.com, mkumar@redhat.com,
Muneendra <muneendra.kumar@broadcom.com>
Subject: [patch v4 2/5] scsi: Added a new error code in scsi.h
Date: Thu, 22 Oct 2020 18:04:48 +0530 [thread overview]
Message-ID: <1603370091-9337-3-git-send-email-muneendra.kumar@broadcom.com> (raw)
In-Reply-To: <1603370091-9337-1-git-send-email-muneendra.kumar@broadcom.com>
[-- Attachment #1: Type: text/plain, Size: 1423 bytes --]
Added a new error code DID_TRANSPORT_MARGINAL to handle marginal
errors in scsi.h
Clearing the SCMD_NORETRIES_ABORT bit in state flag before
blk_mq_start_request
Signed-off-by: Muneendra <muneendra.kumar@broadcom.com>
---
v4:
No change
v3:
Rearranged the patch by merging second hunk of the previous(v2)
patch3 to this patch
v2:
Newpatch
---
drivers/scsi/scsi_lib.c | 1 +
include/scsi/scsi.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 1a2e9bab42ef..2b5dea07498e 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -1660,6 +1660,7 @@ static blk_status_t scsi_queue_rq(struct blk_mq_hw_ctx *hctx,
req->rq_flags |= RQF_DONTPREP;
} else {
clear_bit(SCMD_STATE_COMPLETE, &cmd->state);
+ clear_bit(SCMD_NORETRIES_ABORT, &cmd->state);
}
cmd->flags &= SCMD_PRESERVED_FLAGS;
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h
index 5339baadc082..5b287ad8b727 100644
--- a/include/scsi/scsi.h
+++ b/include/scsi/scsi.h
@@ -159,6 +159,7 @@ static inline int scsi_is_wlun(u64 lun)
* paths might yield different results */
#define DID_ALLOC_FAILURE 0x12 /* Space allocation on the device failed */
#define DID_MEDIUM_ERROR 0x13 /* Medium error */
+#define DID_TRANSPORT_MARGINAL 0x14 /* Transport marginal errors */
#define DRIVER_OK 0x00 /* Driver status */
/*
--
2.26.2
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4177 bytes --]
next prev parent reply other threads:[~2020-10-22 19:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-22 12:34 [patch v4 0/5] scsi: Support to handle Intermittent errors Muneendra
2020-10-22 12:34 ` [patch v4 1/5] scsi: Added a new definition in scsi_cmnd.h Muneendra
2020-10-22 12:34 ` Muneendra [this message]
2020-10-26 11:45 ` [patch v4 2/5] scsi: Added a new error code in scsi.h Ewan D. Milne
2020-10-26 20:24 ` Muneendra Kumar M
2020-10-22 12:34 ` [patch v4 3/5] scsi: No retries on abort success Muneendra
2020-10-22 12:34 ` [patch v4 4/5] scsi_transport_fc: Added a new rport state FC_PORTSTATE_MARGINAL Muneendra
2020-10-26 11:48 ` Ewan D. Milne
2020-10-26 20:24 ` Muneendra Kumar M
2020-10-26 17:14 ` Mike Christie
2020-10-29 11:53 ` Muneendra Kumar M
2020-10-29 16:20 ` Mike Christie
2020-10-29 16:56 ` Muneendra Kumar M
2020-10-22 12:34 ` [patch v4 5/5] scsi_transport_fc: Added store fucntionality to set the rport port_state using sysfs Muneendra
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=1603370091-9337-3-git-send-email-muneendra.kumar@broadcom.com \
--to=muneendra.kumar@broadcom.com \
--cc=emilne@redhat.com \
--cc=hare@suse.de \
--cc=jsmart2021@gmail.com \
--cc=linux-scsi@vger.kernel.org \
--cc=michael.christie@oracle.com \
--cc=mkumar@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.