lkml.org 
[lkml]   [2008]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 2/4] pktgen: make sure that pktgen_thread_worker has been executed

Denis V. Lunev writes:

> static int kthread(void *_create)
> {
> ...
> if (!kthread_should_stop())
> pktgen_thread_worker();
> ...
> }
>
> and kthread_stop. If kthread_stop will be called _before_ the control
> goes inside pktgen_thread_worker you'll OOPS.

For some reason my tests survives here... but agree the completion syncing
gives better control.

Cheers
--ro


\
 
 \ /
  Last update: 2008-05-20 22:03    [from the cache]
©2003-2011 Jasper Spaans