lkml.org 
[lkml]   [2021]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] rlimits: do not grab tasklist_lock for do_prlimit on current
On Wed, Dec 15, 2021 at 01:42:32PM -0600, Eric W. Biederman wrote:
...
>
> > If it's too much of a risk/ugliness for not clear enough gain (in code
> > quality or performance), I'm fine with dropping it.
>
> Removing the tasklist_lock where we can is definitely a clear gain.
>
> Simply shoving tasklist_lock aside and making the code more complicated
> is much less clear.
>
> Plus anything you can benchmark (even microbenchmark) and show the
> benefit of is welcome. Especially when you have indications that it
> makes a difference in a larger context.

Thanks for looking into this, Eric! I must confess I've a vague memory
about this code. Still while you're talking about cleanup I wonder if
we should make do_prlimit() being a static function, not global as it
now.

\
 
 \ /
  Last update: 2021-12-19 22:30    [W:0.073 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site