diff options
Diffstat (limited to 'sys/rpc/replay.c')
-rw-r--r-- | sys/rpc/replay.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/rpc/replay.c b/sys/rpc/replay.c index c89def5..2e92017 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 |