@@ -35,7 +35,7 @@ static int qedf_initiate_els(struct qedf_rport *fcport, unsigned int op,
QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_ELS, "Sending ELS\n");
- rc = fc_remote_port_chkready(fcport->rport);
+ rc = fc_remote_port_chkready(fcport->rport, NULL);
if (rc) {
QEDF_ERR(&(qedf->dbg_ctx), "els 0x%x: rport not ready\n", op);
rc = -EAGAIN;
@@ -975,7 +975,7 @@ qedf_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd)
return 0;
}
- rval = fc_remote_port_chkready(rport);
+ rval = fc_remote_port_chkready(rport, sc_cmd);
if (rval) {
QEDF_INFO(&qedf->dbg_ctx, QEDF_LOG_IO,
"fc_remote_port_chkready failed=0x%x for port_id=0x%06x.\n",
@@ -2438,7 +2438,7 @@ int qedf_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags)
io_req, io_req->xid, ref_cnt);
}
- rval = fc_remote_port_chkready(rport);
+ rval = fc_remote_port_chkready(rport, sc_cmd);
if (rval) {
QEDF_ERR(NULL, "device_reset rport not ready\n");
rc = FAILED;
@@ -761,7 +761,7 @@ static int qedf_eh_abort(struct scsi_cmnd *sc_cmd)
goto drop_rdata_kref;
}
- if (fc_remote_port_chkready(rport)) {
+ if (fc_remote_port_chkready(rport, sc_cmd)) {
refcount = kref_read(&io_req->refcount);
QEDF_ERR(&qedf->dbg_ctx,
"rport not ready, io_req=%p, xid=0x%x sc_cmd=%p op=0x%02x, refcount=%d, port_id=%06x\n",
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/qedf/qedf_els.c | 2 +- drivers/scsi/qedf/qedf_io.c | 4 ++-- drivers/scsi/qedf/qedf_main.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)