Re: [PATCH] [RFC] fix missed SIGCONT cases

From: Roland McGrath
Date: Wed Feb 27 2008 - 16:04:35 EST


Have you observed an actual problem? I don't think the "race" you seem to
be concerned about is a problem at all.

The comment refers to the necessary atomicity of posting the signal along
with doing the wakeups. Those are done together with the siglock held.
It does not matter that the siglock was dropped and reacquired before
there. All that matters is that we hold the siglock continuously from
before the wake_up_state calls made in handle_stop_signal through until
after the signal-posting done by its callers.

Can you enumerate the specific sequence of events that would result in
error under the current code?


Thanks,
Roland
--
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/