diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-11-21 13:26:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-21 13:26:44 -0500 |
commit | 551eaff1b384cc107eab6332ba8424b3ca1f304b (patch) | |
tree | 02c90fa7a5ea2f6ebdf34004ae20f9c403e5820c /net/ipv6/tunnel6.c | |
parent | 20a95a2169d1cd3da50cf65ba882d0e27a4a2d4f (diff) |
pktgen: allow faster module unload
Unloading pktgen module needs ~6 seconds on a 64 cpus machine, to stop
64 kthreads.
Add a pktgen_exiting variable to let kernel threads die faster, so that
kthread_stop() doesnt have to wait too long for them. This variable is
not tested in fast path.
Note : Before exiting from pktgen_thread_worker(), we must make sure
kthread_stop() is waiting for this thread to be stopped, like its done
in kernel/softirq.c
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tunnel6.c')
0 files changed, 0 insertions, 0 deletions