Re: [PATCH] oom killer (Core)

From: William Lee Irwin III
Date: Fri Dec 10 2004 - 13:22:10 EST

On Fri, Dec 10, 2004 at 10:00:31AM -0800, William Lee Irwin III wrote:
>> Yet those don't appear in the tasklist, so some task in the tasklist
>> has to get ->mm set to &init_mm. The notion above was that the init_mm
>> check was to handle some out-of-tree attempt to do aio from kernel threads.

On Fri, Dec 10, 2004 at 07:15:29PM +0100, Andrea Arcangeli wrote:
> Not sure to understand correctly but, aio has always been done through
> kernel threads, and that's the whole thing about aio. Not sure what
> you're doing out-of-tree, but you don't need to use init_mm to deal with
> kernel threads, infact kernel threads can only have ->mm = NULL. When
> switching mm with use_mm the aio thread is only going to use a real mm
> with mappings in userspace, so even in that case you don't need init_mm.
> I didn't see the out of tree code though.

Maybe the whole init_mm check should die since nothing in-tree could
cause it?

-- wli
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at