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:
Rick Macklem 2010-08-25 23:23:00 +00:00
parent 2b13785931
commit d7dc2db434

View File

@ -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