Looks correct at first glance. A couple of nits below.
And we already discussed this ;) We do not need 2 siglock's, only
parent's. Just move the callsite in __exit_signal() down, under
another (lockless) group_dead check.
Or I missed something?
Given that task_io_accounting is Linux specific, perhaps we can use
signal->ioac in both cases?
Yes, this is a user-visible change anyway. But, at least we can
forget about POSIX.
We can do this before taking ->siglock. Not that I think this really
matters, but otherwise this looks a bit confusing imho, as if we need
parent's ->siglock to pin something.
And thanks for splitting these changes. It was much, much easier to
read now.
Oleg.
--