Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2013 19:17:45 +0100
From:      Mateusz Guzik <mjguzik@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Mateusz Guzik <mjg@freebsd.org>
Subject:   Re: svn commit: r259407 - head/sys/kern
Message-ID:  <20131217181745.GB7535@dft-labs.eu>
In-Reply-To: <201312171141.49251.jhb@freebsd.org>
References:  <201312150411.rBF4Bhtg018852@svn.freebsd.org> <201312171141.49251.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131217181745.GB7535>