Messages in this thread | | | From | Linus Torvalds <> | Date | Fri, 17 Jun 2022 14:48:08 -0500 | Subject | Re: [PATCH] locking/rwlocks: do not starve writers |
| |
On Fri, Jun 17, 2022 at 2:39 PM Eric Dumazet <edumazet@google.com> 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
| |