1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-11 14:10:34 +00:00

Avoid useless relocking.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Edward Tomasz Napierala 2015-12-13 11:08:29 +00:00
parent 6fc608bf2c
commit 57e2ebdc08
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292160

View File

@ -631,8 +631,8 @@ racct_add_force(struct proc *p, int resource, uint64_t amount)
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