Re: [RFC][PATCH 11/13] fs/locks: Replace lg_local with a per-cpu spinlock

2015-06-22 Thread Oleg Nesterov
Off-topic question, On 06/22, Peter Zijlstra wrote: > > @@ -2650,9 +2660,8 @@ static void *locks_start(struct seq_file > > iter->li_pos = *pos + 1; > percpu_down_write(&file_rwsem); > - lg_global_lock(&file_lock_lglock); > spin_lock(&blocked_lock_lock); > - return seq_h

[RFC][PATCH 11/13] fs/locks: Replace lg_local with a per-cpu spinlock

2015-06-22 Thread Peter Zijlstra
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. Cc: Al Viro Suggested-by: Oleg Nesterov Signed-off-by: Peter Zijlstra (Intel) --- fs/Kconfig |1 + fs/locks.c | 47 +