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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211830

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