From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Wed, 21 Feb 2007 22:39:09 +0000 Subject: [Cluster-devel] [GFS2 patch] fix locking mistake In-Reply-To: <20070220050328.GB1836@korben.rdu.redhat.com> References: <20070220050328.GB1836@korben.rdu.redhat.com> Message-ID: <1172097549.3203.33.camel@localhost.localdomain> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Now in the gfs2 git tree, sorry for the delay. Thanks, Steve. On Tue, 2007-02-20 at 00:03 -0500, Josef Whiter wrote: > This patch fixes a locking mistake in the quota code, we do a mutex_lock instead > of a mutex_unlock. > > Signed-off-by: Josef Whiter > > --- linux-2.6/fs/gfs2/quota.c.josef 2007-02-20 00:41:23.000000000 -0500 > +++ linux-2.6/fs/gfs2/quota.c 2007-02-20 00:51:58.000000000 -0500 > @@ -279,7 +279,7 @@ static int bh_get(struct gfs2_quota_data > (bh->b_data + sizeof(struct gfs2_meta_header) + > offset * sizeof(struct gfs2_quota_change)); > > - mutex_lock(&sdp->sd_quota_mutex); > + mutex_unlock(&sdp->sd_quota_mutex); > > return 0; > >