[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <18483.11702.257165.615708@robur.slu.se>
Date: Tue, 20 May 2008 21:59:50 +0200
From: Robert Olsson <Robert.Olsson@...a.slu.se>
To: "Denis V. Lunev" <den@...nvz.org>
Cc: Robert Olsson <Robert.Olsson@...a.slu.se>,
akpm@...ux-foundation.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Patrick McHardy <kaber@...sh.net>,
Robert Olsson <robert.olsson@....uu.se>,
Ben Greear <greearb@...delatech.com>
Subject: Re: [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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists