svn commit: r212310 - stable/8/sys/rpc

Rick Macklem rmacklem at FreeBSD.org
Wed Sep 8 01:41:23 UTC 2010


Author: rmacklem
Date: Wed Sep  8 01:41:22 2010
New Revision: 212310
URL: http://svn.freebsd.org/changeset/base/212310

Log:
  MFC: r211830
  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.

Modified:
  stable/8/sys/rpc/replay.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/rpc/replay.c
==============================================================================
--- stable/8/sys/rpc/replay.c	Wed Sep  8 01:18:09 2010	(r212309)
+++ stable/8/sys/rpc/replay.c	Wed Sep  8 01:41:22 2010	(r212310)
@@ -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


More information about the svn-src-all mailing list