Commit e0f07896 authored by Trond Myklebust's avatar Trond Myklebust

NFSv4: Hold the delegation spinlock when updating the seqid

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent f9e0cc9c
...@@ -387,8 +387,10 @@ int nfs_inode_set_delegation(struct inode *inode, const struct cred *cred, ...@@ -387,8 +387,10 @@ int nfs_inode_set_delegation(struct inode *inode, const struct cred *cred,
/* Is this an update of the existing delegation? */ /* Is this an update of the existing delegation? */
if (nfs4_stateid_match_other(&old_delegation->stateid, if (nfs4_stateid_match_other(&old_delegation->stateid,
&delegation->stateid)) { &delegation->stateid)) {
spin_lock(&old_delegation->lock);
nfs_update_inplace_delegation(old_delegation, nfs_update_inplace_delegation(old_delegation,
delegation); delegation);
spin_unlock(&old_delegation->lock);
goto out; goto out;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment