@@ -1867,7 +1867,7 @@ int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd)
int rc = 0;
struct fc_stats *stats;
- 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);
@@ -2239,7 +2239,7 @@ int fc_slave_alloc(struct scsi_device *sdev)
{
struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
- if (!rport || fc_remote_port_chkready(rport))
+ if (!rport || fc_remote_port_chkready(rport, NULL))
return -ENXIO;
scsi_change_queue_depth(sdev, FC_FCP_DFLT_QUEUE_DEPTH);
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/libfc/fc_fcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)