提交 e37da04e 编写于 作者: A Alexandros Batsakis 提交者: J. Bruce Fields

nfsd: lock state around put client and delegation in nfsd4_cb_recall

not having the state locked before putting the client/delegation causes a bug.
Also removed the comment from the function header about the state being already locked
Signed-off-by: NAlexandros Batsakis <batsakis@netapp.com>
Signed-off-by: NBenny Halevy <bhalevy@panasas.com>
Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
上级 6c02eaa1
...@@ -451,7 +451,6 @@ nfsd4_probe_callback(struct nfs4_client *clp) ...@@ -451,7 +451,6 @@ nfsd4_probe_callback(struct nfs4_client *clp)
/* /*
* called with dp->dl_count inc'ed. * called with dp->dl_count inc'ed.
* nfs4_lock_state() may or may not have been called.
*/ */
void void
nfsd4_cb_recall(struct nfs4_delegation *dp) nfsd4_cb_recall(struct nfs4_delegation *dp)
...@@ -491,7 +490,9 @@ nfsd4_cb_recall(struct nfs4_delegation *dp) ...@@ -491,7 +490,9 @@ nfsd4_cb_recall(struct nfs4_delegation *dp)
* Success or failure, now we're either waiting for lease expiration * Success or failure, now we're either waiting for lease expiration
* or deleg_return. * or deleg_return.
*/ */
nfs4_lock_state();
put_nfs4_client(clp); put_nfs4_client(clp);
nfs4_put_delegation(dp); nfs4_put_delegation(dp);
nfs4_unlock_state();
return; return;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册