Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/nfs/nfs_vfsops.c
          +++ new/usr/src/uts/common/fs/nfs/nfs_vfsops.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 1986, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  23   24   *
  24   25   *      Copyright (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  25   26   *      All rights reserved.
  26   27   */
  27   28  
  28   29  #include <sys/param.h>
  29   30  #include <sys/types.h>
  30   31  #include <sys/systm.h>
  31   32  #include <sys/cred.h>
  32   33  #include <sys/vfs.h>
↓ open down ↓ 1095 lines elided ↑ open up ↑
1128 1129                          if (p == allpc)
1129 1130                                  allpc = p->pc_next;
1130 1131                          else
1131 1132                                  p2->pc_next = p->pc_next;
1132 1133                          kmem_free(p, sizeof (*p));
1133 1134                          mi->mi_pathconf = NULL;
1134 1135                  }
1135 1136          }
1136 1137  }
1137 1138  
1138      -static int nfs_dynamic = 1;     /* global variable to enable dynamic retrans. */
1139      -static ushort_t nfs_max_threads = 8;    /* max number of active async threads */
1140      -static uint_t nfs_async_clusters = 1;   /* # of reqs from each async queue */
1141      -static uint_t nfs_cots_timeo = NFS_COTS_TIMEO;
     1139 +volatile int nfs_dynamic = 1;   /* global variable to enable dynamic retrans. */
     1140 +volatile ushort_t nfs_max_threads = 8;  /* max number of active async threads */
     1141 +volatile uint_t nfs_async_clusters = 1; /* # of reqs from each async queue */
     1142 +volatile uint_t nfs_cots_timeo = NFS_COTS_TIMEO;
1142 1143  
1143 1144  static int
1144 1145  nfsrootvp(vnode_t **rtvpp, vfs_t *vfsp, struct servinfo *svp,
1145 1146          int flags, cred_t *cr, zone_t *zone)
1146 1147  {
1147 1148          vnode_t *rtvp;
1148 1149          mntinfo_t *mi;
1149 1150          dev_t nfs_dev;
1150 1151          struct vattr va;
1151 1152          int error;
↓ open down ↓ 668 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX