diff options
| author | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-08-01 18:53:49 +0300 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-08-15 18:54:47 +0300 |
| commit | e824f99adaaf1ed0e03eac8574599af6d992163d (patch) | |
| tree | c5d2716566d21f023bd278dae6a92a06cbe72816 /include/linux | |
| parent | b30d2f04c35d539bf8003b3e014c389abefc249b (diff) | |
| download | linux-e824f99adaaf1ed0e03eac8574599af6d992163d.tar.xz | |
NFSv4: Use a mutex to protect the per-inode commit lists
The commit lists can get very large, so using the inode->i_lock can
end up affecting general metadata performance.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux')
| -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 5cc91d6381a3..121a702888b4 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h @@ -163,6 +163,7 @@ struct nfs_inode { /* Readers: in-flight sillydelete RPC calls */ /* Writers: rmdir */ struct rw_semaphore rmdir_sem; + struct mutex commit_mutex; #if IS_ENABLED(CONFIG_NFS_V4) struct nfs4_cached_acl *nfs4_acl; |
