diff options
author | Eric Dumazet <edumazet@google.com> | 2022-06-23 07:34:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-06-24 13:34:37 +0300 |
commit | e4cd9868e8ec3691e6d94725c8b10edd1ec6eca2 (patch) | |
tree | 9023915cd767a7f8dc8ba91dd9d0375e6dc1699c /net | |
parent | 4eadb88244d17056179a47f613e30c49191072c5 (diff) | |
download | linux-e4cd9868e8ec3691e6d94725c8b10edd1ec6eca2.tar.xz |
ipmr: do not acquire mrt_lock in ipmr_get_route()
mr_fill_mroute() uses standard rcu_read_unlock(),
no need to grab mrt_lock anymore.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/ipmr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index b0f2e6d79d62..69ccd3d7c655 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c @@ -2289,9 +2289,7 @@ int ipmr_get_route(struct net *net, struct sk_buff *skb, return err; } - read_lock(&mrt_lock); err = mr_fill_mroute(mrt, skb, &cache->_c, rtm); - read_unlock(&mrt_lock); rcu_read_unlock(); return err; } |