lkml.org 
[lkml]   [2022]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2 3/3] prlimit: do not grab the tasklist_lock
From
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

\
 
 \ /
  Last update: 2022-01-06 17:44    [W:0.035 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site