end_cr function moving read lock to
second for loop
In function mld_send_cr, the first loop is already protected by
idev->mc_lock, it dont need idev->lock read lock, hence moving it
only to second for loop. And converting the existing spin_lock to
spin_lock_bh
Signed-off-by: Guruswamy Bas
From: Guruswamy Basavaiah
Date: Fri, 17 Aug 2018 18:01:41 +0530
> @@ -1860,7 +1860,6 @@ static void mld_send_cr(struct inet6_dev *idev)
> struct sk_buff *skb = NULL;
> int type, dtype;
>
> -read_lock_bh(&idev->lock);
> spin_lock(&idev->mc_lock);
>
> /* deleted MCA's */
In function mld_send_cr, the first loop is already protected by
idev->mc_lock, it dont need idev->lock read lock, hence moving it
only to second for loop.
Signed-off-by: Guruswamy Basavaiah
---
net/ipv6/mcast.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv6/mcast.c