diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-09-02 15:11:57 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-09-30 15:35:16 -0400 |
commit | 1db97eaa0b482a738c715da6edb023d6f99e50b0 (patch) | |
tree | ab49a24c0d53e75780386dbbac1ab7c5531f047b /include/linux/nfs_fs.h | |
parent | 28ced9a84cd2f9fc68a081fb3b34e70c5d459be3 (diff) | |
download | linux-stable-1db97eaa0b482a738c715da6edb023d6f99e50b0.tar.gz linux-stable-1db97eaa0b482a738c715da6edb023d6f99e50b0.tar.bz2 linux-stable-1db97eaa0b482a738c715da6edb023d6f99e50b0.zip |
NFS: Convert lookups of the lock context to RCU
Speed up lookups of an existing lock context by avoiding the inode->i_lock,
and using RCU instead.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index a0831e9d19c9..d2f4f88a0e66 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h @@ -62,6 +62,7 @@ struct nfs_lock_context { struct nfs_open_context *open_context; fl_owner_t lockowner; atomic_t io_count; + struct rcu_head rcu_head; }; struct nfs4_state; |