Re: [PATCH] nfsd: Don't unlock the state while it's not locked

2013-01-02 Thread J. Bruce Fields
On Mon, Dec 24, 2012 at 06:11:45PM +0800, ycn...@gmail.com wrote: > From: Yanchuan Nian > > In the procedure of CREATE_SESSION, the state is locked after > alloc_conn_from_crses(). If the allocation fails, the function > goes to "out_free_session", and then "out" where there is an > unlock

Re: [PATCH] nfsd: Don't unlock the state while it's not locked

2013-01-02 Thread J. Bruce Fields
On Mon, Dec 24, 2012 at 06:11:45PM +0800, ycn...@gmail.com wrote: From: Yanchuan Nian ycn...@gmail.com In the procedure of CREATE_SESSION, the state is locked after alloc_conn_from_crses(). If the allocation fails, the function goes to out_free_session, and then out where there is an unlock

[PATCH] nfsd: Don't unlock the state while it's not locked

2012-12-24 Thread ycnian
From: Yanchuan Nian In the procedure of CREATE_SESSION, the state is locked after alloc_conn_from_crses(). If the allocation fails, the function goes to "out_free_session", and then "out" where there is an unlock function. Signed-off-by: Yanchuan Nian --- fs/nfsd/nfs4state.c |3 ++- 1

[PATCH] nfsd: Don't unlock the state while it's not locked

2012-12-24 Thread ycnian
From: Yanchuan Nian ycn...@gmail.com In the procedure of CREATE_SESSION, the state is locked after alloc_conn_from_crses(). If the allocation fails, the function goes to out_free_session, and then out where there is an unlock function. Signed-off-by: Yanchuan Nian ycn...@gmail.com ---