Re: [PATCH 5/7] Fix double call to pthread_mutex_unlock in _treefs_s_dir_lookup.

2012-12-26 Thread Samuel Thibault
Neal H. Walfield, le Mon 17 Dec 2012 10:08:02 +0100, a écrit : > I would change this to do a trylock on dir->lock. If that fails, then > unlock node->lock and relock dir->lock and node->lock. Indeed, thanks. Samuel

Re: [PATCH 5/7] Fix double call to pthread_mutex_unlock in _treefs_s_dir_lookup.

2012-12-17 Thread Samuel Thibault
Cyril Roelandt, le Mon 17 Dec 2012 20:49:21 +0100, a écrit : > On 12/17/2012 01:31 AM, Samuel Thibault wrote: > >Cyril Roelandt, le Mon 17 Dec 2012 00:51:28 +0100, a écrit : > >>* libtreefs/dir-lookup.c (_treefs_s_dir_lookup): remove a redundant call to > >>pthread_mutex_unlock. > >> > >>Signed-off

Re: [PATCH 5/7] Fix double call to pthread_mutex_unlock in _treefs_s_dir_lookup.

2012-12-17 Thread Cyril Roelandt
On 12/17/2012 01:31 AM, Samuel Thibault wrote: Cyril Roelandt, le Mon 17 Dec 2012 00:51:28 +0100, a écrit : * libtreefs/dir-lookup.c (_treefs_s_dir_lookup): remove a redundant call to pthread_mutex_unlock. Signed-off-by: Cyril Roelandt --- libtreefs/dir-lookup.c |1 - 1 file changed, 1 d

Re: [PATCH 5/7] Fix double call to pthread_mutex_unlock in _treefs_s_dir_lookup.

2012-12-17 Thread Neal H. Walfield
At Mon, 17 Dec 2012 01:31:32 +0100, Samuel Thibault wrote: > > Cyril Roelandt, le Mon 17 Dec 2012 00:51:28 +0100, a écrit : > > * libtreefs/dir-lookup.c (_treefs_s_dir_lookup): remove a redundant call to > > pthread_mutex_unlock. > > > > Signed-off-by: Cyril Roelandt > > --- > > libtreefs/dir-l

Re: [PATCH 5/7] Fix double call to pthread_mutex_unlock in _treefs_s_dir_lookup.

2012-12-16 Thread Samuel Thibault
Cyril Roelandt, le Mon 17 Dec 2012 00:51:28 +0100, a écrit : > * libtreefs/dir-lookup.c (_treefs_s_dir_lookup): remove a redundant call to > pthread_mutex_unlock. > > Signed-off-by: Cyril Roelandt > --- > libtreefs/dir-lookup.c |1 - > 1 file changed, 1 deletion(-) > > diff --git a/libtreef

[PATCH 5/7] Fix double call to pthread_mutex_unlock in _treefs_s_dir_lookup.

2012-12-16 Thread Cyril Roelandt
* libtreefs/dir-lookup.c (_treefs_s_dir_lookup): remove a redundant call to pthread_mutex_unlock. Signed-off-by: Cyril Roelandt --- libtreefs/dir-lookup.c |1 - 1 file changed, 1 deletion(-) diff --git a/libtreefs/dir-lookup.c b/libtreefs/dir-lookup.c index ce2acaf..41c34ea 100644 --- a/lib