Re: [PATCH] jffs2_gcd_mtd3, Stopping kernel threads timed out

Uli Luckas
2007-06-29T08:59:35Z

On Friday, 29. June 2007, David Woodhouse wrote:
> On Fri, 2007-06-29 at 10:24 +0200, Uli Luckas wrote:
> > But then again, my patch was more complex for a reason :-) How does your
> > patch handle the situation, where try_to_freeze returns true _and_ there
> > is a pending SIGHUP?
>
> It'll go back to the beginning of the loop, then if it _does_ take the
> !thread_should_wake() path it'll be woken immediately by the pending
> SIGHUP, and it'll do one GC pass as intended.
>
Hi David,
Thanks for your explanation. You are obviously right.
I missed the point where a pending signal keeps wakeing INTERRUPTIBLE tasks
until it is handled.

regards,