Re: [Ocfs2-devel] [PATCH 1/2] cannot metex_unlock without mutex_lock in ocfs2_remove_btree_range

2013-06-10 Thread Joseph Qi
On 2013/6/10 15:14, Jeff Liu wrote: > On 06/10/2013 02:27 PM, Joseph Qi wrote: > >> In ocfs2_remove_btree_range, when calling ocfs2_lock_refcount_tree and >> ocfs2_prepare_refcount_change_for_del failed, it goes to out and then >> tries to call mutex_unlock without mutex_lock before. > > It's bet

Re: [Ocfs2-devel] [PATCH 1/2] cannot metex_unlock without mutex_lock in ocfs2_remove_btree_range

2013-06-10 Thread Jeff Liu
On 06/10/2013 02:27 PM, Joseph Qi wrote: > In ocfs2_remove_btree_range, when calling ocfs2_lock_refcount_tree and > ocfs2_prepare_refcount_change_for_del failed, it goes to out and then > tries to call mutex_unlock without mutex_lock before. It's better to merge both into one patch because it's a

[Ocfs2-devel] [PATCH 1/2] cannot metex_unlock without mutex_lock in ocfs2_remove_btree_range

2013-06-09 Thread Joseph Qi
In ocfs2_remove_btree_range, when calling ocfs2_lock_refcount_tree and ocfs2_prepare_refcount_change_for_del failed, it goes to out and then tries to call mutex_unlock without mutex_lock before. Signed-off-by: Joseph Qi --- fs/ocfs2/alloc.c |6 +++--- 1 file changed, 3 insertions(+), 3 delet