提交 d7fdcfe0 编写于 作者: J J. Bruce Fields

nfsd4: put_nfs4_client does not require state lock

Since free_client() is guaranteed to only be called once, and to only
touch the client structure itself (not any common data structures), it
has no need for the state lock.
Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
Cc: Alexandros Batsakis <batsakis@netapp.com>
上级 18f82731
......@@ -490,8 +490,8 @@ nfsd4_cb_recall(struct nfs4_delegation *dp)
* Success or failure, now we're either waiting for lease expiration
* or deleg_return.
*/
nfs4_lock_state();
put_nfs4_client(clp);
nfs4_lock_state();
nfs4_put_delegation(dp);
nfs4_unlock_state();
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册