Signed-off-by: Robert Love <[EMAIL PROTECTED]>
---
drivers/scsi/libfc/fc_fcp.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/scsi/libfc/fc_fcp.c b/drivers/scsi/libfc/fc_fcp.c
index 9386250..7243ac2 100644
--- a/drivers/scsi/libfc/fc_fcp.c
+++ b/drivers/scsi/libfc/fc_fcp.c
@@ -635,7 +635,7 @@ static void fc_fcp_recv(struct fc_seq *sp, struct fc_frame
*fp, void *arg)
r_ctl = fh->fh_r_ctl;
lp = fsp->lp;
- if (!(lp->state & LPORT_ST_READY))
+ if (!fc_lport_test_ready(lp))
goto out;
if (fc_fcp_lock_pkt(fsp))
goto out;
@@ -1707,7 +1707,7 @@ int fc_queuecommand(struct scsi_cmnd *sc_cmd, void
(*done)(struct scsi_cmnd *))
rp = rport->dd_data;
- if (lp->state != LPORT_ST_READY) {
+ if (!fc_lport_test_ready(lp)) {
rc = SCSI_MLQUEUE_HOST_BUSY;
goto out;
} else {
@@ -1912,7 +1912,7 @@ int fc_eh_abort(struct scsi_cmnd *sc_cmd)
unsigned long flags;
lp = shost_priv(sc_cmd->device->host);
- if (lp->state != LPORT_ST_READY)
+ if (!fc_lport_test_ready(lp))
return rc;
else if (!(lp->link_status & FC_LINK_UP))
return rc;
@@ -1966,7 +1966,7 @@ int fc_eh_device_reset(struct scsi_cmnd *sc_cmd)
rp = rport->dd_data;
lp = shost_priv(sc_cmd->device->host);
- if (lp->state != LPORT_ST_READY)
+ if (!fc_lport_test_ready(lp))
return rc;
sp = fc_fcp_pkt_alloc(lp);
_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel