diff options
| author | Eric Dumazet <[email protected]> | 2015-02-26 07:20:34 -0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-02-27 17:55:14 -0500 |
| commit | 5beb5c90c1f54d745da040aa05634a5830ba4a4c (patch) | |
| tree | 4626f1033a05b15b4cd046d066de1011c7a7f67d /lib/mpi/mpi-internal.h | |
| parent | 061c1a6e367855a9ed1110ba059bc2e7634fd429 (diff) | |
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 <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions