From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Thornber Subject: Re: dm-bufio Date: Fri, 14 Oct 2011 10:19:15 +0100 Message-ID: <20111014091914.GB4496@ubuntu> References: <20111013194001.GA12863@redhat.com> <20111013223147.GA14220@redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20111013223147.GA14220@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mike Snitzer Cc: dm-devel@redhat.com, Mikulas Patocka , "Alasdair G. Kergon" List-Id: dm-devel.ids On Thu, Oct 13, 2011 at 06:31:47PM -0400, Mike Snitzer wrote: > On Thu, Oct 13 2011 at 6:19pm -0400, > Mikulas Patocka wrote: > > > > +static int dm_bufio_trylock(struct dm_bufio_client *c) > > > +{ > > > + return dm_bufio_trylock(c); > > > +} > > > + > > > +static void dm_bufio_unlock(struct dm_bufio_client *c) > > > +{ > > > + dm_bufio_unlock(c); > > > +} > > > > These two functions are recursive nonsense :) There should be > > "return mutex_trylock(&c->lock);" and "mutex_unlock(&c->lock);". > > Heheh. Sorry, M-x replace-string gone wild. > > Here is a fixed version. Thanks Mike. If you haven't tested something can you please say, so I know to run it through the full suite? - Joe