Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
These changes are a raw update to a vanilla kernel 4.1.10, with the
[kvmfornfv.git]
/
kernel
/
net
/
core
/
pktgen.c
diff --git
a/kernel/net/core/pktgen.c
b/kernel/net/core/pktgen.c
index
508155b
..
043ea18
100644
(file)
--- a/
kernel/net/core/pktgen.c
+++ b/
kernel/net/core/pktgen.c
@@
-3490,8
+3490,10
@@
static int pktgen_thread_worker(void *arg)
pktgen_rem_thread(t);
/* Wait for kthread_stop */
-
while (!kthread_should_stop()
) {
+
for (;;
) {
set_current_state(TASK_INTERRUPTIBLE);
+ if (kthread_should_stop())
+ break;
schedule();
}
__set_current_state(TASK_RUNNING);