Add mutex locking for the call to replay_prune() in
replay_setsize(), since replay_prune() expects the rc_lock to be held when it is called. MFC after: 2 weeks
This commit is contained in:
parent
2b13785931
commit
d7dc2db434
@ -90,8 +90,10 @@ void
|
||||
replay_setsize(struct replay_cache *rc, size_t newmaxsize)
|
||||
{
|
||||
|
||||
mtx_lock(&rc->rc_lock);
|
||||
rc->rc_maxsize = newmaxsize;
|
||||
replay_prune(rc);
|
||||
mtx_unlock(&rc->rc_lock);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user