Re: [PATCH v2 3/3] prlimit: do not grab the tasklist_lock
From: Barret Rhoden
Date: Thu Jan 06 2022 - 11:43:16 EST
On 1/5/22 17:05, Eric W. Biederman wrote:
I think the simple solution is just:
update_rlimit_cpu(tsk->group_leader)
As the group leader is guaranteed to be the last thread of the thread
group to be processed in release_task, and thus the last thread with a
sighand. Nothing needs to be done if it does not have a sighand.
Ah, good to know. I didn't know the group_leader stuck around as a
zombie. That makes life easier. I'll make the change and repost the
patches.
Thanks,
Barret