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

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