From d7d2f38d5e682ef0a3154b36caa6793459170e72 Mon Sep 17 00:00:00 2001 From: Dotan Barak Date: Fri, 24 Oct 2008 00:19:11 +0000 Subject: [PATCH] Fix missing removal of DECLARE_MUTEX_UNLOCKED noticed by Shai. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@535 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla_isp/linux/isp_scst.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qla_isp/linux/isp_scst.c b/qla_isp/linux/isp_scst.c index 5864a75d5..f725daab7 100644 --- a/qla_isp/linux/isp_scst.c +++ b/qla_isp/linux/isp_scst.c @@ -983,7 +983,7 @@ qlaispd_function(void *arg) static int scsi_target_enadis(bus_t *bp, uint64_t en, int chan, int lun) { - DECLARE_MUTEX_LOCKED(rsem); + struct semaphore rsem; enadis_t ec; info_t info; bus_chan_t *bc; @@ -992,6 +992,7 @@ scsi_target_enadis(bus_t *bp, uint64_t en, int chan, int lun) BUG_ON(chan < 0 || chan >= bp->h.r_nchannels); BUG_ON(lun != LUN_ANY && (lun < 0 || lun >= MAX_LUN)); bc = &bp->bchan[chan]; + sema_init(&rsem, 0); if (bp->h.r_type == R_FC) { if (en == bc->enable) {