Re: [RFC][PATCH 1/3] Freezer: Fix vfork problem

From: Oleg Nesterov
Date: Mon Feb 26 2007 - 07:00:56 EST


On 02/26, Rafael J. Wysocki wrote:
>
> The changelog explains it pretty well, I hope, but I have one more comment to
> start with. Namely, in this version of the patch I've added
>
> + if (is_user_space(current))
> + try_to_freeze();
>
> to freezer_count() instead of just try_to_freeze(). This way kernel threads
> can avoid being frozen where they don't want to.

In that case we should also modify ____call_usermodehelper(), otherwise we have
the same "deadlock" if it is frozen. But this is not so easy to do as I thought
before.

Oleg.

-
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/