Thread (21 messages) 21 messages, 7 authors, 2017-06-09

Re: [PATCH v2] firmware: fix sending -ERESTARTSYS due to signal on fallback

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2017-05-27 01:17:18
Also in: lkml

Possibly related (same subject, not in this thread)

On Fri, May 26, 2017 at 12:46 PM, Luis R. Rodriguez [off-list ref] wrote:
On Fri, May 26, 2017 at 06:09:29AM -0500, Eric W. Biederman wrote:
quoted
"Fuzzey, Martin" [off-list ref] writes:
quoted
quoted
quoted
quoted
Maybe SIGCHLD shouldn't interrupt firmware loading?
I don't think there's a way of doing that without disabling all
signals (ie using the non interruptible wait variants).
It used to be that way (which is why I only ran into this after
updating from an ancient 3.16 kernel to a slightly less ancient 4.4)
But there are valid reasons for wanting to be able to interrupt
firmware loading (like being able to kill the userspace helper)
Perhaps simply using a killable wait and not a fully interruptible
wait would be better?
What do you mean by a killable wait BTW?
https://lwn.net/Articles/288056/

I think only interrupting firmware loading with fatal signals would
make a lot of sense.
ret = swait_event_interruptible_timeout() is being used right now.
It looks like we are missing swait_event_killable*(), but I do not
think it would be hard to add.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help