diff options
author | Eric Dumazet <edumazet@google.com> | 2015-02-26 16:20:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-27 23:55:14 +0100 |
commit | 5beb5c90c1f54d745da040aa05634a5830ba4a4c (patch) | |
tree | 4626f1033a05b15b4cd046d066de1011c7a7f67d /drivers | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsh... (diff) | |
download | linux-5beb5c90c1f54d745da040aa05634a5830ba4a4c.tar.xz linux-5beb5c90c1f54d745da040aa05634a5830ba4a4c.zip |
rhashtable: use cond_resched()
If a hash table has 128 slots and 16384 elems, expand to 256 slots
takes more than one second. For larger sets, a soft lockup is detected.
Holding cpu for that long, even in a work queue is a show stopper
for non preemptable kernels.
cond_resched() at strategic points to allow process scheduler
to reschedule us.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions