Message ID | 20220623043449.1217288-10-edumazet@google.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e4cd9868e8ec3691e6d94725c8b10edd1ec6eca2 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | ipmr: get rid of rwlocks | expand |
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index b0f2e6d79d62273c8c2682f28cb45fe5ec3df6f3..69ccd3d7c655a53d3cf1ac9104b9da94213416f6 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; }
mr_fill_mroute() uses standard rcu_read_unlock(), no need to grab mrt_lock anymore. Signed-off-by: Eric Dumazet <edumazet@google.com> --- net/ipv4/ipmr.c | 2 -- 1 file changed, 2 deletions(-)