If the sequence pointer for the corresponding fsp is NULL, the associated
exchange is already done, do not return error in fc_fcp_send_abort(), which
would end up returning error from fc_eh_abort() to scsi-ml, causing
unnecessary lun reset.

Signed-off-by: Yi Zou <[email protected]>
---

 drivers/scsi/libfc/fc_fcp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/libfc/fc_fcp.c b/drivers/scsi/libfc/fc_fcp.c
index e340373..165f671 100644
--- a/drivers/scsi/libfc/fc_fcp.c
+++ b/drivers/scsi/libfc/fc_fcp.c
@@ -261,7 +261,7 @@ static void fc_fcp_timer_set(struct fc_fcp_pkt *fsp, 
unsigned long delay)
 static int fc_fcp_send_abort(struct fc_fcp_pkt *fsp)
 {
        if (!fsp->seq_ptr)
-               return -EINVAL;
+               return 0;
 
        fsp->state |= FC_SRB_ABORT_PENDING;
        return fsp->lp->tt.seq_exch_abort(fsp->seq_ptr, 0);

_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel

Reply via email to