aboutsummaryrefslogtreecommitdiff
path: root/sys/rpc
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2010-08-25 23:23:00 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2010-08-25 23:23:00 +0000
commitd7dc2db43420265b37084554b5dd55887fcd8c87 (patch)
tree1a73ee53456daddf2d256fa4050a0e31ed0394d0 /sys/rpc
parent2b137859310f69bd48e2f5784336c3ae4fa70d6a (diff)
downloadsrc-d7dc2db43420265b37084554b5dd55887fcd8c87.tar.gz
src-d7dc2db43420265b37084554b5dd55887fcd8c87.zip
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
Notes
Notes: svn path=/head/; revision=211830
Diffstat (limited to 'sys/rpc')
-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