Re: [PATCH 1/5] mm: Add __GFP_NO_OOM_KILL flag

From: Andrew Morton
Date: Tue May 12 2009 - 13:58:19 EST


On Tue, 12 May 2009 18:52:36 +0200 "Rafael J. Wysocki" <rjw@xxxxxxx> wrote:

> Well, what about the following?

It has the virtue of simplicity.

> +static inline void disable_oom_killer(void)
> +{
> + oom_killer_disabled = true;
> +}
> +
> +static inline void enable_oom_killer(void)
> +{
> + oom_killer_disabled = false;
> +}

I'll change these to oom_killer_disable() and oom_killer_enable(), OK?
--
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/