Re: [PATCH/RFC] signal: Export signal_wake_up_state() to modules

From: Christoph Hellwig
Date: Fri May 05 2017 - 07:22:14 EST

On Fri, May 05, 2017 at 01:08:47PM +0200, Geert Uytterhoeven wrote:
> Of course I can add a flag to indicate abortion, and just call complete_all(),
> but IMHO that's a bit silly, given wait_for_completion_interruptible() already
> provides this side channel information through -ERESTARTSYS.

Even if this was the right channel (which I'm not sure about) it
should be provided as an abstract API operating on the completion.