aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_sup.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_sup.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_sup.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_sup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_sup.c b/drivers/scsi/qla2xxx/qla_sup.c
index 3866a5760f15..8d68c463cd5b 100644
--- a/drivers/scsi/qla2xxx/qla_sup.c
+++ b/drivers/scsi/qla2xxx/qla_sup.c
@@ -1354,7 +1354,7 @@ qla2x00_resume_hba(struct scsi_qla_host *ha)
1354 /* Resume HBA. */ 1354 /* Resume HBA. */
1355 clear_bit(MBX_UPDATE_FLASH_ACTIVE, &ha->mbx_cmd_flags); 1355 clear_bit(MBX_UPDATE_FLASH_ACTIVE, &ha->mbx_cmd_flags);
1356 set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags); 1356 set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags);
1357 up(ha->dpc_wait); 1357 qla2xxx_wake_dpc(ha);
1358 qla2x00_wait_for_hba_online(ha); 1358 qla2x00_wait_for_hba_online(ha);
1359 scsi_unblock_requests(ha->host); 1359 scsi_unblock_requests(ha->host);
1360} 1360}
@@ -1652,7 +1652,7 @@ qla24xx_write_optrom_data(struct scsi_qla_host *ha, uint8_t *buf,
1652 /* Resume HBA -- RISC reset needed. */ 1652 /* Resume HBA -- RISC reset needed. */
1653 clear_bit(MBX_UPDATE_FLASH_ACTIVE, &ha->mbx_cmd_flags); 1653 clear_bit(MBX_UPDATE_FLASH_ACTIVE, &ha->mbx_cmd_flags);
1654 set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags); 1654 set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags);
1655 up(ha->dpc_wait); 1655 qla2xxx_wake_dpc(ha);
1656 qla2x00_wait_for_hba_online(ha); 1656 qla2x00_wait_for_hba_online(ha);
1657 scsi_unblock_requests(ha->host); 1657 scsi_unblock_requests(ha->host);
1658 1658