svn commit: r259407 - head/sys/kern

Mateusz Guzik mjguzik at gmail.com
Tue Dec 17 18:17:52 UTC 2013


On Tue, Dec 17, 2013 at 11:41:49AM -0500, John Baldwin wrote:
> On Saturday, December 14, 2013 11:11:43 pm Mateusz Guzik wrote:
> > Author: mjg
> > Date: Sun Dec 15 04:11:43 2013
> > New Revision: 259407
> > URL: http://svnweb.freebsd.org/changeset/base/259407
> > 
> > Log:
> >   proc exit: don't take PROC_LOCK while freeing rlimits
> >   
> >   Code wishing to check rlimits of some process should check whether it
> >   is exiting first, which current consumers do.
> 
> Does this measurably reduce contention?
> 

No, this is just a cosmetic change I did while doing some other work
with rlimits.

It would use some more cosmetic work (e.g. no reason not to
lim_free(p->plimit); p->p_limit = NULL) and maybe I'll get to that
later unless this kind of stuff is unwanted.

-- 
Mateusz Guzik <mjguzik gmail.com>


More information about the svn-src-head mailing list