aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_def.h
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_def.h
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_def.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_def.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index b31a03bbd14f..2e16f3285d5f 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -2414,11 +2414,7 @@ typedef struct scsi_qla_host {
2414 struct sns_cmd_pkt *sns_cmd; 2414 struct sns_cmd_pkt *sns_cmd;
2415 dma_addr_t sns_cmd_dma; 2415 dma_addr_t sns_cmd_dma;
2416 2416
2417 pid_t dpc_pid; 2417 struct task_struct *dpc_thread;
2418 int dpc_should_die;
2419 struct completion dpc_inited;
2420 struct completion dpc_exited;
2421 struct semaphore *dpc_wait;
2422 uint8_t dpc_active; /* DPC routine is active */ 2418 uint8_t dpc_active; /* DPC routine is active */
2423 2419
2424 /* Timeout timers. */ 2420 /* Timeout timers. */