Print this page
re #13613 rb4516 Tunables needs volatile keyword
        
*** 18,27 ****
--- 18,28 ----
   *
   * CDDL HEADER END
   */
  /*
   * Copyright (c) 1986, 2010, Oracle and/or its affiliates. All rights reserved.
+  * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
   *
   *      Copyright (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
   *      All rights reserved.
   */
  
*** 1133,1146 ****
                          mi->mi_pathconf = NULL;
                  }
          }
  }
  
! static int nfs_dynamic = 1;     /* global variable to enable dynamic retrans. */
! static ushort_t nfs_max_threads = 8;    /* max number of active async threads */
! static uint_t nfs_async_clusters = 1;   /* # of reqs from each async queue */
! static uint_t nfs_cots_timeo = NFS_COTS_TIMEO;
  
  static int
  nfsrootvp(vnode_t **rtvpp, vfs_t *vfsp, struct servinfo *svp,
          int flags, cred_t *cr, zone_t *zone)
  {
--- 1134,1147 ----
                          mi->mi_pathconf = NULL;
                  }
          }
  }
  
! volatile int nfs_dynamic = 1;   /* global variable to enable dynamic retrans. */
! volatile ushort_t nfs_max_threads = 8;  /* max number of active async threads */
! volatile uint_t nfs_async_clusters = 1; /* # of reqs from each async queue */
! volatile uint_t nfs_cots_timeo = NFS_COTS_TIMEO;
  
  static int
  nfsrootvp(vnode_t **rtvpp, vfs_t *vfsp, struct servinfo *svp,
          int flags, cred_t *cr, zone_t *zone)
  {