]> git.baikalelectronics.ru Git - kernel.git/commit
ipmr: ipmr_cache_report() changes
authorEric Dumazet <edumazet@google.com>
Thu, 23 Jun 2022 04:34:34 +0000 (04:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 10:34:37 +0000 (11:34 +0100)
commitffc1d412ac0e3beb4928b6f4fa751fbbd2c7e456
treefb3b31c8bddb36858e02fd2de28599be66113335
parent599b2e5add4ffc8969e63e89251b6044dfc6e101
ipmr: ipmr_cache_report() changes

ipmr_cache_report() first argument can be marked const, and we change
the caller convention about which lock needs to be held.

Instead of read_lock(&mrt_lock), we can use rcu_read_lock().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c