diff --git a/sys/rpc/replay.c b/sys/rpc/replay.c index c89def576a53..2e92017689a1 100644 --- a/sys/rpc/replay.c +++ b/sys/rpc/replay.c @@ -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