aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikas Chaudhary <[email protected]>2010-07-30 14:27:19 +0530
committerJames Bottomley <[email protected]>2010-08-06 11:58:56 -0500
commit0753b4871d5b09687cee652b380a6ca15aee330e (patch)
tree27d244d3acff5b090d8d5afd8f48cd126bb02d02
parent9d4946f89fc050cadf66d08c47379ab62848a5b7 (diff)
[SCSI] qla4xxx: clear AF_DPC_SCHEDULED flage when exit from do_dpc
Signed-off-by: Vikas Chaudhary <[email protected]> Signed-off-by: Ravi Anand <[email protected]> Reviewed-by: Mike Christie <[email protected]> Signed-off-by: James Bottomley <[email protected]>
-rw-r--r--drivers/scsi/qla4xxx/ql4_os.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index fd1af23e6801..e575d765ba26 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -1208,7 +1208,7 @@ static void qla4xxx_do_dpc(struct work_struct *work)
/* Initialization not yet finished. Don't do anything yet. */
if (!test_bit(AF_INIT_DONE, &ha->flags))
- return;
+ goto do_dpc_exit;
/* HBA is in the process of being permanently disabled.
* Don't process anything */
@@ -1347,6 +1347,8 @@ dpc_post_reset_ha:
}
}
}
+
+do_dpc_exit:
clear_bit(AF_DPC_SCHEDULED, &ha->flags);
}