diff options
author | Eric Dumazet <edumazet@google.com> | 2022-06-23 06:34:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-06-24 12:34:37 +0200 |
commit | e4cd9868e8ec3691e6d94725c8b10edd1ec6eca2 (patch) | |
tree | 9023915cd767a7f8dc8ba91dd9d0375e6dc1699c | |
parent | ipmr: do not acquire mrt_lock while calling ip_mr_forward() (diff) | |
download | linux-e4cd9868e8ec3691e6d94725c8b10edd1ec6eca2.tar.xz linux-e4cd9868e8ec3691e6d94725c8b10edd1ec6eca2.zip |
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>
-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; } |