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
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 +
2 matches
Mail list logo