Re: [PATCH v4 0/2] proc: Ensure we see the exit of each process tid exactly
From: Eric W. Biederman
Date: Tue Apr 28 2020 - 14:58:07 EST
Oleg Nesterov <oleg@xxxxxxxxxx> writes:
> On 04/28, Eric W. Biederman wrote:
>>
>> In short I don't think this change will introduce any regressions.
>>
>> Eric W. Biederman (2):
>> rculist: Add hlists_swap_heads_rcu
>> proc: Ensure we see the exit of each process tid exactly once
>
> Eric, sorry, I got lost.
>
> Both changes look good to me, feel free to add my ack, but I presume
> this is on top of next_tgid/lookup_task changes ? If yes, why did not
> you remove has_group_leader_pid?
On top of next_tgid.
Upon a close examination there are not any current bugs in
posix-cpu-timers nor is there anything that exchange_tids
will make worse.
I am preparing a follow on patchset to kill has_group_leader_pid.
I am preparing a further follow on patchset to see if I can get that
code to start returning pids, because that is cheaper and clearer.
I pushed those changes a little farther out so I could maintain focus on
what I am accomplishing.
Adding exchange_tids was difficult because I had to audit pretty much
all of the pid use in the kernel to see if the small change in behavior
would make anything worse. The rest of the changes should be simpler
and more localized so I hope they go faster.
Eric