Re: please revert kthread from loop.c

From: Hugh Dickins
Date: Wed Jun 28 2006 - 14:40:17 EST


On Tue, 27 Jun 2006, Serge E. Hallyn wrote:
>
> Very sorry.

No problem, just something I happened to notice, that's all.

> Subject: [PATCH] kthread: convert loop.c to use kthread
>
> Convert loop.c to use kthread in place of the deprecated
> kernel_thread.
>
> Update: Keep the lo_done completion to indicate when the
> loop_thread is ready. Otherwise a user gets the
> go-ahead early and may start an ioctl before
> loop_thread is in fact ready.
>
> Also fix some other bugs including misnaming the thread,
> found by Andrew Morton, and not setting lo->thread as
> pointed out by Hugh Dickins.
>
> This version has passed parallel runs of the following
> script (on different devices of course), i.e.

But not good for me. Gets further e.g. 170 iterations,
but then hangs while kthread_stop waits for completion.

I haven't investigated further. Is there really any reason
to be messing with what has worked well for so long here?

Hugh
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/