[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [dm-devel] dm-bufio
- From: Mikulas Patocka <mpatocka redhat com>
- To: Mike Snitzer <snitzer redhat com>
- Cc: dm-devel redhat com, Edward Thornber <thornber redhat com>, "Alasdair G. Kergon" <agk redhat com>
- Subject: Re: [dm-devel] dm-bufio
- Date: Thu, 13 Oct 2011 18:19:00 -0400 (EDT)
> +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);".
Mikulas
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]