NFSv4: Fix up another delegation related race
When we can update_open_stateid(), we need to be certain that we don't race with a delegation return. While we could do this by grabbing the nfs_client->cl_lock, a dedicated spin lock in the delegation structure will scale better. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
0cb2659b81
commit
343104308a
3 changed files with 60 additions and 28 deletions
|
@ -22,6 +22,7 @@ struct nfs_delegation {
|
|||
long flags;
|
||||
loff_t maxsize;
|
||||
__u64 change_attr;
|
||||
spinlock_t lock;
|
||||
struct rcu_head rcu;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue