aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/rpc/replay.c2
1 files changed, 2 insertions, 0 deletions
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