aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_mbx.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2006-02-14 12:46:22 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-03-02 23:56:40 -0500
commit39a112403fd4c6cd2215b5a59ff079e42eb824a4 (patch)
tree28aa3ca27e6c32aea24457547a79ecfca0602762 /drivers/scsi/qla2xxx/qla_mbx.c
parent7e6dff62dad539cbd608bb3b8b833193d13f00ac (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_mbx.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_mbx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
index 363dfdd042b0..584cc2f6dd35 100644
--- a/drivers/scsi/qla2xxx/qla_mbx.c
+++ b/drivers/scsi/qla2xxx/qla_mbx.c
@@ -284,9 +284,7 @@ qla2x00_mailbox_command(scsi_qla_host_t *ha, mbx_cmd_t *mcp)
284 "Mailbox command timeout occured. Scheduling ISP " 284 "Mailbox command timeout occured. Scheduling ISP "
285 "abort.\n"); 285 "abort.\n");
286 set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags); 286 set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags);
287 if (ha->dpc_wait && !ha->dpc_active) 287 qla2xxx_wake_dpc(ha);
288 up(ha->dpc_wait);
289
290 } else if (!abort_active) { 288 } else if (!abort_active) {
291 /* call abort directly since we are in the DPC thread */ 289 /* call abort directly since we are in the DPC thread */
292 DEBUG(printk("%s(%ld): timeout calling abort_isp\n", 290 DEBUG(printk("%s(%ld): timeout calling abort_isp\n",