From c09205bd0c3c3e210903d4c884cf794bbceaf438 Mon Sep 17 00:00:00 2001 From: Stanislaw Gruszka Date: Thu, 13 Mar 2008 10:58:44 +0000 Subject: [PATCH] Bugfixes: - pass commands to SCST after assigning initiator to them - enable lun's on proper channel git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@302 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla_isp/linux/isp_scst.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qla_isp/linux/isp_scst.c b/qla_isp/linux/isp_scst.c index 39d24004d..da4a7651b 100644 --- a/qla_isp/linux/isp_scst.c +++ b/qla_isp/linux/isp_scst.c @@ -561,7 +561,9 @@ add_initiators(void) } } } - spin_unlock_irq(&bp->tmds_lock); + spin_unlock_irq(&bp->tmds_lock); + /* now we can run queue and pass commands to scst */ + tasklet_schedule(&bp->tasklet); } } @@ -924,7 +926,7 @@ scsi_target_enadis(bus_t *bp, int chan, int en) memset(&ec, 0, sizeof (ec)); ec.en_hba = bp->h.r_identity; - ec.en_chan = 0; + ec.en_chan = chan; if (bp->h.r_type == R_FC) { SDprintk("%s: ANY LUN acceptable\n", __FUNCTION__); ec.en_lun = LUN_ANY;