Print this page
re #13613 rb4516 Tunables needs volatile keyword

@@ -21,13 +21,14 @@
  */
 /*
  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
+/*
+ * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
+ */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #include <nfs/nfs.h>
 #include <nfs/nfs4.h>
 #include <nfs/rnode4.h>
 #include <nfs/nfs4_clnt.h>
 #include <sys/bitmap.h>

@@ -34,11 +35,12 @@
 
 /*
  * Access cache
  */
 static acache4_hash_t *acache4;
-static long nacache;    /* used strictly to size the number of hash queues */
+extern volatile long nacache;   /* used strictly to size the number of hash */
+                                /* queues */
 
 static int acache4size;
 static int acache4mask;
 static struct kmem_cache *acache4_cache;
 static int acache4_hashlen = 4;