diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2010-08-25 23:23:00 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2010-08-25 23:23:00 +0000 |
commit | 5df5c603404f273e90652478c9a2a0368674cfa2 (patch) | |
tree | 1a73ee53456daddf2d256fa4050a0e31ed0394d0 | |
parent | cef8b6cdbb578c293b548612270e12047f76871a (diff) | |
download | FreeBSD-src-5df5c603404f273e90652478c9a2a0368674cfa2.zip FreeBSD-src-5df5c603404f273e90652478c9a2a0368674cfa2.tar.gz |
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
-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 |