aboutsummaryrefslogtreecommitdiffstats
path: root/fs/Kconfig
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2015-06-22 08:16:34 -0400
committerIngo Molnar <mingo@kernel.org>2016-09-22 09:25:53 -0400
commit7c3f654d8e18942295eeda42f7d75494443980e0 (patch)
treeb8b4cb3acbb418846eef73c9a296b34434d56b1f /fs/Kconfig
parentaba37660738325d48c913f3a952a7116d6e6a74b (diff)
fs/locks: Replace lg_local with a per-cpu spinlock
As Oleg suggested, replace file_lock_list with a structure containing the hlist head and a spinlock. This completely removes the lglock from fs/locks. Suggested-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Al Viro <viro@ZenIV.linux.org.uk> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: dave@stgolabs.net Cc: der.herr@hofr.at Cc: paulmck@linux.vnet.ibm.com Cc: riel@redhat.com Cc: tj@kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs/Kconfig')
-rw-r--r--fs/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/Kconfig b/fs/Kconfig
index 2bc7ad775842..3ef62bad8f2b 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -79,6 +79,7 @@ config EXPORTFS_BLOCK_OPS
79config FILE_LOCKING 79config FILE_LOCKING
80 bool "Enable POSIX file locking API" if EXPERT 80 bool "Enable POSIX file locking API" if EXPERT
81 default y 81 default y
82 select PERCPU_RWSEM
82 help 83 help
83 This option enables standard file locking support, required 84 This option enables standard file locking support, required
84 for filesystems like NFS and for the flock() system 85 for filesystems like NFS and for the flock() system