Messages in this thread | | | Date | Thu, 13 Jul 2006 08:36:02 -0500 | From | "Serge E. Hallyn" <> | Subject | Re: please revert kthread from loop.c |
| |
Quoting Andrew Morton (akpm@osdl.org):
> Again: why is this so hard? It shouldn't be. Perhaps because loop is > using completions in bizarre ways where it should be using > wake_up_process(), wait_event(), etc.
Ah.
wait_event() actually seems like the way to go - I'll try to follow the example in fs/ocfs2/journal.c.
Still I'd also like to patch kthread to correctly handle an already exited thread. Would that be acceptable, or is requiring the thread not to exit prematurely considered desirable?
thanks, -serge - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |