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    [W:0.019 / U:2.840 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site