[SCSI] qla4xxx: clear AF_DPC_SCHEDULED flage when exit from do_dpc

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>
This commit is contained in:
Vikas Chaudhary 2010-07-30 14:27:19 +05:30 коммит произвёл James Bottomley
Родитель 9d4946f89f
Коммит 0753b4871d
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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);
}