]> git.baikalelectronics.ru Git - kernel.git/commit
ipvlan: do not use cond_resched_rcu() in ipvlan_process_multicast()
authorEric Dumazet <edumazet@google.com>
Tue, 10 Mar 2020 01:22:58 +0000 (18:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 01:32:03 +0000 (18:32 -0700)
commitd177f12b53d6fc24ba36858d4489cc85de2a88bd
tree357419b398e0a28517032150280eb488c6278ac0
parent7eb1a17ffdafb3d6096460f17d181f57a0ef772e
ipvlan: do not use cond_resched_rcu() in ipvlan_process_multicast()

Commit 6aaf137596d1 ("ipvlan: add cond_resched_rcu() while
processing muticast backlog") added a cond_resched_rcu() in a loop
using rcu protection to iterate over slaves.

This is breaking rcu rules, so lets instead use cond_resched()
at a point we can reschedule

Fixes: 6aaf137596d1 ("ipvlan: add cond_resched_rcu() while processing muticast backlog")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_core.c