From: Eric Dumazet Date: Thu, 23 Jun 2022 04:34:39 +0000 (+0000) Subject: ipmr: do not acquire mrt_lock in ipmr_get_route() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e4cd9868e8ec3691e6d94725c8b10edd1ec6eca2;p=linux.git 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index b0f2e6d79d622..69ccd3d7c655a 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; }