Re: [PATCH 03/10] locking: bring back lglocks

From: Peter Zijlstra
Date: Fri May 18 2018 - 04:55:05 EST


On Fri, May 18, 2018 at 03:49:04AM -0400, Kent Overstreet wrote:
> bcachefs makes use of them - also, add a proper lg_lock_init()

Why?! lglocks are horrid things, we got rid of them for a reason. They
have terrifying worst case preemption off latencies.

Why can't you use something like per-cpu rwsems?