raw: complete rcu conversion
authorEric Dumazet <edumazet@google.com>
Mon, 20 Jun 2022 10:05:09 +0000 (03:05 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 21 Jun 2022 09:38:29 +0000 (11:38 +0200)
commitaf185d8c76333daa877678e0166a7b45e63bf3c4
tree0c3f2c0168c01595f1b17e34d9b4cd290a0e82c6
parentf9aefd6b2aa38b9787d2705f0f1161dfd23cdb8f
raw: complete rcu conversion

raw_diag_dump() can use rcu_read_lock() instead of read_lock()

Now the hashinfo lock is only used from process context,
in write mode only, we can convert it to a spinlock,
and we do not need to block BH anymore.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220620100509.3493504-1-eric.dumazet@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/raw.h
net/ipv4/raw.c
net/ipv4/raw_diag.c