From: Eric Dumazet Date: Sun, 21 Nov 2010 18:26:44 +0000 (-0800) Subject: pktgen: allow faster module unload X-Git-Tag: v2.6.38-rc1~476^2~495 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=551eaff1b384cc107eab6332ba8424b3ca1f304b;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed