]> git.baikalelectronics.ru Git - kernel.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)
commit967c481ef8a7adfb775f4087229f1996d88ba772
tree8311322efb11300bcbbeefee9d3a711508b6c56c
parent94b2add5613ab979ff17b6080261ee90562b18e3
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