Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/nfs/nfs4_acache.c
          +++ new/usr/src/uts/common/fs/nfs/nfs4_acache.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
       26 +/*
       27 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       28 + */
  26   29  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   30  #include <nfs/nfs.h>
  30   31  #include <nfs/nfs4.h>
  31   32  #include <nfs/rnode4.h>
  32   33  #include <nfs/nfs4_clnt.h>
  33   34  #include <sys/bitmap.h>
  34   35  
  35   36  /*
  36   37   * Access cache
  37   38   */
  38   39  static acache4_hash_t *acache4;
  39      -static long nacache;    /* used strictly to size the number of hash queues */
       40 +extern volatile long nacache;   /* used strictly to size the number of hash */
       41 +                                /* queues */
  40   42  
  41   43  static int acache4size;
  42   44  static int acache4mask;
  43   45  static struct kmem_cache *acache4_cache;
  44   46  static int acache4_hashlen = 4;
  45   47  
  46   48  /*
  47   49   * This probably needs to be larger than or equal to
  48   50   * log2(sizeof (struct rnode)) due to the way that rnodes are
  49   51   * allocated.
↓ open down ↓ 207 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX