Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/nfs/nfs4_vfsops.c
          +++ new/usr/src/uts/common/fs/nfs/nfs4_vfsops.c
↓ open down ↓ 2152 lines elided ↑ open up ↑
2153 2153                  svp->sv_path =
2154 2154                      kmem_alloc(origsvp->sv_pathlen, KM_SLEEP);
2155 2155                  svp->sv_pathlen = origsvp->sv_pathlen;
2156 2156                  bcopy(origsvp->sv_path, svp->sv_path,
2157 2157                      origsvp->sv_pathlen);
2158 2158                  nfs_rw_exit(&svp->sv_lock);
2159 2159          }
2160 2160          return (svp);
2161 2161  }
2162 2162  
2163      -static ushort_t nfs4_max_threads = 8;   /* max number of active async threads */
2164      -uint_t nfs4_bsize = 32 * 1024;  /* client `block' size */
2165      -static uint_t nfs4_async_clusters = 1;  /* # of reqs from each async queue */
2166      -static uint_t nfs4_cots_timeo = NFS_COTS_TIMEO;
     2163 +volatile ushort_t nfs4_max_threads = 8; /* max number of active async threads */
     2164 +volatile uint_t nfs4_bsize = 32 * 1024; /* client `block' size */
     2165 +volatile uint_t nfs4_async_clusters = 1; /* # of reqs from each async queue */
     2166 +volatile uint_t nfs4_cots_timeo = NFS_COTS_TIMEO;
2167 2167  
2168 2168  /*
2169 2169   * Remap the root filehandle for the given filesystem.
2170 2170   *
2171 2171   * results returned via the nfs4_error_t parameter.
2172 2172   */
2173 2173  void
2174 2174  nfs4_remap_root(mntinfo4_t *mi, nfs4_error_t *ep, int flags)
2175 2175  {
2176 2176          struct servinfo4 *svp, *origsvp;
↓ open down ↓ 2313 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX