]> git.karo-electronics.de Git - linux-beck.git/commit
net: pktgen: kill the "Wait for kthread_stop" code in pktgen_thread_worker()
authorOleg Nesterov <oleg@redhat.com>
Wed, 8 Jul 2015 19:42:13 +0000 (21:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jul 2015 22:05:32 +0000 (15:05 -0700)
commit1fbe4b46caca5b01b070af93d513031ffbcc480c
tree8311322efb11300bcbbeefee9d3a711508b6c56c
parentfecdf8be2d91e04b0a9a4f79ff06499a36f5d14f
net: pktgen: kill the "Wait for kthread_stop" code in pktgen_thread_worker()

pktgen_thread_worker() doesn't need to wait for kthread_stop(), it
can simply exit. Just pktgen_create_thread() and pg_net_exit() should
do get_task_struct()/put_task_struct(). kthread_stop(dead_thread) is
fine.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c