aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFlorian Westphal <[email protected]>2017-11-30 21:08:05 +0100
committerPablo Neira Ayuso <[email protected]>2018-01-08 18:01:04 +0100
commita778a15fa5cf5f632cd55845f548189a29e9b57b (patch)
treee9259d75cb6a7342e4cacf2d982ff6ef812a8b6d /tools/perf/scripts/python
parent49971b8853f576f4252cbc8fc3df8173d7a56de3 (diff)
netfilter: ipset: add resched points during set listing
When sets are extremely large we can get softlockup during ipset -L. We could fix this by adding cond_resched_rcu() at the right location during iteration, but this only works if RCU nesting depth is 1. At this time entire variant->list() is called under under rcu_read_lock_bh. This used to be a read_lock_bh() but as rcu doesn't really lock anything, it does not appear to be needed, so remove it (ipset increments set reference count before this, so a set deletion should not be possible). Reported-by: Li Shuang <[email protected]> Signed-off-by: Florian Westphal <[email protected]> Acked-by: Jozsef Kadlecsik <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions