@@ -4521,7 +4521,7 @@ lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd)
if (unlikely(!rdata) || unlikely(!rport))
goto out_fail_command;
- err = fc_remote_port_chkready(rport);
+ err = fc_remote_port_chkready(rport, cmnd);
if (err) {
cmnd->result = err;
goto out_fail_command;
@@ -5519,7 +5519,7 @@ lpfc_slave_alloc(struct scsi_device *sdev)
unsigned long flags;
struct lpfc_name target_wwpn;
- if (!rport || fc_remote_port_chkready(rport))
+ if (!rport || fc_remote_port_chkready(rport, NULL))
return -ENXIO;
if (phba->cfg_fof) {
Added changes to pass a new argument to fc_remote_port_chkready Signed-off-by: Muneendra <muneendra.kumar@broadcom.com> --- v3: Removed calling fc_rport_chkmarginal_set_noretries to set the SCMD_NORETRIES_ABORT bit. Modified the fc_remote_port_chkready fucntion by passing new argument scsi_cmd which internally checks and sets the same. v2: New Patch --- drivers/scsi/lpfc/lpfc_scsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)