Avoid useless relocking.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
6fc608bf2c
commit
57e2ebdc08
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user