Re: [PATCH] change current_is_single_threaded() to use for_each_thread()

From: David Howells
Date: Wed Oct 07 2015 - 09:50:26 EST


Oleg Nesterov <oleg@xxxxxxxxxx> wrote:

> To clarify, we had some "real" bugs fixed by s/while_each_thread/
> for_each_thread/, but only because while_each_thread() was used wrongly.
> for_each_thread() is more safe, it only needs the stable task_struct.

Fair enough.

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