]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ipmr-remove-rwlocks'
authorDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 10:34:38 +0000 (11:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 10:34:38 +0000 (11:34 +0100)
commit755dee9156524421eab92847c7cbf702666bee6f
tree5c00956ca95472c1a3196f5b74f4396e5b44abb2
parentdc0f9cae18686c943b79988875a59057cb9f53a7
parent13bff16a9b1f48941e71cb67811b0ef8cb46ae35
Merge branch 'ipmr-remove-rwlocks'

Eric Dumazet says:

====================
ipmr: get rid of rwlocks

We need to get rid of rwlocks in networking stacks,
if read_lock() is (ab)used from softirq context.

As discussed recently [1], rwlock are unfair by design in this case,
and writers can starve and trigger soft lockups.

This series convert ipmr code (both IPv4 and IPv6 families)
to RCU and spinlocks.

[1] https://lkml.org/lkml/2022/6/17/272

v2: fixed two typos, and resent because patch 19/19
    did not make it to patchwork.
====================

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