Date: Sun, 13 Dec 2015 11:08:29 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r292160 - head/sys/kern Message-ID: <201512131108.tBDB8TG9004505@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Sun Dec 13 11:08:29 2015 New Revision: 292160 URL: https://svnweb.freebsd.org/changeset/base/292160 Log: Avoid useless relocking. MFC after: 1 month Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/kern_racct.c Modified: head/sys/kern/kern_racct.c ============================================================================== --- head/sys/kern/kern_racct.c Sun Dec 13 09:05:55 2015 (r292159) +++ head/sys/kern/kern_racct.c Sun Dec 13 11:08:29 2015 (r292160) @@ -631,8 +631,8 @@ racct_add_force(struct proc *p, int reso mtx_lock(&racct_lock); racct_adjust_resource(p->p_racct, resource, amount); + racct_add_cred_locked(p->p_ucred, resource, amount); mtx_unlock(&racct_lock); - racct_add_cred(p->p_ucred, resource, amount); } static int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512131108.tBDB8TG9004505>