diff options
author | Christoph Hellwig <hch@lst.de> | 2006-02-14 12:46:22 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-03-02 23:56:40 -0500 |
commit | 39a112403fd4c6cd2215b5a59ff079e42eb824a4 (patch) | |
tree | 28aa3ca27e6c32aea24457547a79ecfca0602762 /drivers/scsi/qla2xxx/qla_isr.c | |
parent | 7e6dff62dad539cbd608bb3b8b833193d13f00ac (diff) |
[SCSI] qla2xxx: use kthread_ API
Use the kthread_ API instead of opencoding lots of hairy code for kernel
thread creation and teardown.
Also switch from semaphore-based thread wakeup to wake_up_process.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-By: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_isr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_isr.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 42aa7a7c1a73..c15458c2bf32 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c | |||
@@ -838,9 +838,7 @@ qla2x00_status_entry(scsi_qla_host_t *ha, void *pkt) | |||
838 | qla_printk(KERN_WARNING, ha, "Status Entry invalid handle.\n"); | 838 | qla_printk(KERN_WARNING, ha, "Status Entry invalid handle.\n"); |
839 | 839 | ||
840 | set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags); | 840 | set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags); |
841 | if (ha->dpc_wait && !ha->dpc_active) | 841 | qla2xxx_wake_dpc(ha); |
842 | up(ha->dpc_wait); | ||
843 | |||
844 | return; | 842 | return; |
845 | } | 843 | } |
846 | cp = sp->cmd; | 844 | cp = sp->cmd; |
@@ -1271,8 +1269,7 @@ qla2x00_error_entry(scsi_qla_host_t *ha, sts_entry_t *pkt) | |||
1271 | "Error entry - invalid handle\n"); | 1269 | "Error entry - invalid handle\n"); |
1272 | 1270 | ||
1273 | set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags); | 1271 | set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags); |
1274 | if (ha->dpc_wait && !ha->dpc_active) | 1272 | qla2xxx_wake_dpc(ha); |
1275 | up(ha->dpc_wait); | ||
1276 | } | 1273 | } |
1277 | } | 1274 | } |
1278 | 1275 | ||