Currently fc_fcp_abts_resp() only does exch_done and cleanup
if BA_ACC received to abort req, so added code to do cleanup
on BA_RJT also, however not sure if scsi result should be
diffrent for BA_ACC v/s BA_RJT.

Signed-off-by: Vasu Dev <[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 f2915ed..bfe077f 100644
--- a/drivers/scsi/libfc/fc_fcp.c
+++ b/drivers/scsi/libfc/fc_fcp.c
@@ -609,7 +609,7 @@ static void fc_fcp_abts_resp(struct fc_fcp_pkt *fsp, struct 
fc_frame_header *fh)
         * we will let the command timeout and scsi-ml escalate if
         * the abort was rejected
         */
-       if (fh->fh_r_ctl == FC_RCTL_BA_ACC) {
+       if (fh->fh_r_ctl == FC_RCTL_BA_ACC || fh->fh_r_ctl == FC_RCTL_BA_RJT) {
                fsp->state |= FC_SRB_ABORTED;
                fsp->state &= ~FC_SRB_ABORT_PENDING;
                fsp->status_code = FC_CMD_ABORTED;

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

Reply via email to