Skip to content

Commit

Permalink
[SCSI] qla4xxx: clear AF_DPC_SCHEDULED flage when exit from do_dpc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vikas Chaudhary authored and James Bottomley committed Aug 6, 2010
1 parent 9d4946f commit 0753b48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/scsi/qla4xxx/ql4_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -1347,6 +1347,8 @@ static void qla4xxx_do_dpc(struct work_struct *work)
}
}
}

do_dpc_exit:
clear_bit(AF_DPC_SCHEDULED, &ha->flags);
}

Expand Down

0 comments on commit 0753b48

Please sign in to comment.