From: "Nicholas A. Bellinger" Date: Wed, 15 Jun 2011 16:40:16 +0000 Subject: Re: [patch 2/4] SCSI: target: change lock to unlock Message-Id: <1308156016.20109.9.camel@haakon2.linux-iscsi.org> List-Id: References: <20110613200846.GI3583@shale.localdomain> In-Reply-To: <20110613200846.GI3583@shale.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter Cc: James Bottomley , Kiran Patil , Yi Zou , Joe Eykholt , "open list:TARGET SUBSYSTEM" , kernel-janitors@vger.kernel.org, target-devel On Mon, 2011-06-13 at 23:08 +0300, Dan Carpenter wrote: > There is a typo here, it should be an unlock instead of a lock. The > original code will deadlock. > > Signed-off-by: Dan Carpenter > Committed as 3370a334b40 with a 'tcm_fc:' prefix for the commit message. Thanks Dan! --nab > diff --git a/drivers/target/tcm_fc/tfc_sess.c b/drivers/target/tcm_fc/tfc_sess.c > index 03744c2..7491e21 100644 > --- a/drivers/target/tcm_fc/tfc_sess.c > +++ b/drivers/target/tcm_fc/tfc_sess.c > @@ -332,7 +332,7 @@ void ft_sess_close(struct se_session *se_sess) > lport = sess->tport->lport; > port_id = sess->port_id; > if (port_id = -1) { > - mutex_lock(&ft_lport_lock); > + mutex_unlock(&ft_lport_lock); > return; > } > FT_SESS_DBG("port_id %x\n", port_id);