diff mbox series

[v3,13/17] scsi:bnx2fc: Added changes to fc_remote_port_chkready

Message ID 1602732462-10443-14-git-send-email-muneendra.kumar@broadcom.com (mailing list archive)
State Superseded
Headers show
Series scsi: Support to handle Intermittent errors | expand

Commit Message

Muneendra Kumar M Oct. 15, 2020, 3:27 a.m. UTC
Added changes to pass a new argument to fc_remote_port_chkready

Signed-off-by: Muneendra <muneendra.kumar@broadcom.com>

---
v3:
New Patch
---
 drivers/scsi/bnx2fc/bnx2fc_els.c | 2 +-
 drivers/scsi/bnx2fc/bnx2fc_io.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/scsi/bnx2fc/bnx2fc_els.c b/drivers/scsi/bnx2fc/bnx2fc_els.c
index 754f2e82d955..aea0e2e6c8b4 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_els.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_els.c
@@ -686,7 +686,7 @@  static int bnx2fc_initiate_els(struct bnx2fc_rport *tgt, unsigned int op,
 	u32 did, sid;
 	u16 xid;
 
-	rc = fc_remote_port_chkready(rport);
+	rc = fc_remote_port_chkready(rport, NULL);
 	if (rc) {
 		printk(KERN_ERR PFX "els 0x%x: rport not ready\n", op);
 		rc = -EINVAL;
diff --git a/drivers/scsi/bnx2fc/bnx2fc_io.c b/drivers/scsi/bnx2fc/bnx2fc_io.c
index 1a0dc18d6915..bed00287f8f1 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_io.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_io.c
@@ -1849,7 +1849,7 @@  int bnx2fc_queuecommand(struct Scsi_Host *host,
 	int rc = 0;
 	int rval;
 
-	rval = fc_remote_port_chkready(rport);
+	rval = fc_remote_port_chkready(rport, sc_cmd);
 	if (rval) {
 		sc_cmd->result = rval;
 		sc_cmd->scsi_done(sc_cmd);