]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'raw-RCU-conversion'
authorDavid S. Miller <davem@davemloft.net>
Sun, 19 Jun 2022 09:00:02 +0000 (10:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jun 2022 09:00:02 +0000 (10:00 +0100)
commitd33fc1831d56f38b56a29277536bea4e02a43ace
treec74d50c59f37ae3e636d6976734762811e118c27
parent342922e2617376c94b0ab9dd3476fdf842e20766
parent09946f5b26860cf34906b933bde5afc4571f5f70
Merge branch 'raw-RCU-conversion'

Eric Dumazet says:

====================
raw: RCU conversion

Using rwlock in networking code is extremely risky.
writers can starve if enough readers are constantly
grabing the rwlock.

I thought rwlock were at fault and sent this patch:

https://lkml.org/lkml/2022/6/17/272

But Peter and Linus essentially told me rwlock had to be unfair.

We need to get rid of rwlock in networking stacks.

Without this conversion, following script triggers soft lockups:

for i in {1..48}
do
 ping -f -n -q 127.0.0.1 &
 sleep 0.1
done

Next step will be to convert ping sockets to RCU as well.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>