[SCSI] qla4xxx: clear AF_DPC_SCHEDULED flage when exit from do_dpc
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>
Fri, 30 Jul 2010 08:57:19 +0000 (14:27 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 6 Aug 2010 16:58:56 +0000 (11:58 -0500)
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: Ravi Anand <ravi.anand@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla4xxx/ql4_os.c

index fd1af23..e575d76 100644 (file)
@@ -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);
 }