Re: [PATCH] locking/rwlocks: do not starve writers
From: Linus Torvalds
Date: Fri Jun 17 2022 - 15:48:49 EST
On Fri, Jun 17, 2022 at 2:39 PM Eric Dumazet <edumazet@xxxxxxxxxx> wrote:
>
> I am converting RAW sockets to RCU.
RCU is usually absolutely the best approach. Use regular spinlocks for
writers, and RCU for readers.
I'd love to see the tasklist_lock be converted to RCU too. But that
locks predates RCU (and probably 99% of all kernel code), and it's
messy, so nobody sane has ever willingly tried to do that afaik.
Linus