aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_mid.c
diff options
context:
space:
mode:
authorMarcus Barrow <marcus.barrow@qlogic.com>2008-01-17 12:02:13 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-23 12:29:31 -0500
commit0b05a1f0d68bf4714c37aa7843c31df1866b017a (patch)
treee228b6fc9b9afabad5c22bd693159a2eb1e003e7 /drivers/scsi/qla2xxx/qla_mid.c
parenta4722cf24d7a0dfa0874d49f61b053a6459761bf (diff)
[SCSI] qla2xxx: Use completion routines.
Instead of abusing the semaphore interfaces for mailbox command completions. Additional cleanups and Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mid.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_mid.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mid.c b/drivers/scsi/qla2xxx/qla_mid.c
index 74096aaa693c..325bdab11903 100644
--- a/drivers/scsi/qla2xxx/qla_mid.c
+++ b/drivers/scsi/qla2xxx/qla_mid.c
@@ -403,8 +403,9 @@ qla24xx_create_vhost(struct fc_vport *fc_vport)
403 } 403 }
404 vha->mgmt_svr_loop_id = 10 + vha->vp_idx; 404 vha->mgmt_svr_loop_id = 10 + vha->vp_idx;
405 405
406 init_MUTEX(&vha->mbx_cmd_sem); 406 init_completion(&vha->mbx_cmd_comp);
407 init_MUTEX_LOCKED(&vha->mbx_intr_sem); 407 complete(&vha->mbx_cmd_comp);
408 init_completion(&vha->mbx_intr_comp);
408 409
409 INIT_LIST_HEAD(&vha->list); 410 INIT_LIST_HEAD(&vha->list);
410 INIT_LIST_HEAD(&vha->fcports); 411 INIT_LIST_HEAD(&vha->fcports);