All of lore.kernel.org
 help / color / mirror / Atom feed
From: Javed Hasan <jhasan@marvell.com>
To: <martin.petersen@oracle.com>
Cc: <linux-scsi@vger.kernel.org>,
	<GR-QLogic-Storage-Upstream@marvell.com>, <jhasan@marvell.com>
Subject: [PATCH 5/8] qedf: Return SUCCESS if stale rport in encountered
Date: Mon, 7 Sep 2020 05:14:40 -0700	[thread overview]
Message-ID: <20200907121443.5150-6-jhasan@marvell.com> (raw)
In-Reply-To: <20200907121443.5150-1-jhasan@marvell.com>

From: Saurav Kashyap <skashyap@marvell.com>

 If SUCCESS is not return, it can get escalated. Hence, return
  SUCCESS similar to other conditions.

Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Javed Hasan <jhasan@marvell.com>
---
 drivers/scsi/qedf/qedf_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index bf1b755..50af70a 100644
--- a/drivers/scsi/qedf/qedf_main.c
+++ b/drivers/scsi/qedf/qedf_main.c
@@ -704,7 +704,7 @@ static int qedf_eh_abort(struct scsi_cmnd *sc_cmd)
 	rdata = fcport->rdata;
 	if (!rdata || !kref_get_unless_zero(&rdata->kref)) {
 		QEDF_ERR(&qedf->dbg_ctx, "stale rport, sc_cmd=%p\n", sc_cmd);
-		rc = 1;
+		rc = SUCCESS;
 		goto out;
 	}
 
-- 
1.8.3.1


  parent reply	other threads:[~2020-09-07 12:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-07 12:14 [PATCH 0/8] qedf: Misc fixes for the driver Javed Hasan
2020-09-07 12:14 ` [PATCH 1/8] qedf: Changed the debug parameter permission to read & write Javed Hasan
2020-09-07 12:14 ` [PATCH 2/8] qedf: Correct the comment in qedf_initiate_els Javed Hasan
2020-09-07 12:14 ` [PATCH 3/8] qedf: Fix for the session’s E_D_TOV value Javed Hasan
2020-09-07 12:14 ` [PATCH 4/8] qedf: FDMI attributes correction Javed Hasan
2020-09-07 12:14 ` Javed Hasan [this message]
2020-09-07 12:14 ` [PATCH 6/8] qedf: Add schedule_hw_err_handler callback for fan failure Javed Hasan
2020-09-07 12:14 ` [PATCH 7/8] qedf: Retry qed->probe during recovery Javed Hasan
2020-09-07 12:14 ` [PATCH 8/8] qedf: Changes the %p to %px to print pointers Javed Hasan
2020-09-09  3:19 ` [PATCH 0/8] qedf: Misc fixes for the driver Martin K. Petersen
2020-09-15 20:16 ` Martin K. Petersen

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=20200907121443.5150-6-jhasan@marvell.com \
    --to=jhasan@marvell.com \
    --cc=GR-QLogic-Storage-Upstream@marvell.com \
    --cc=linux-scsi@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 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.