Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/ufs/lufs_thread.c
          +++ new/usr/src/uts/common/fs/ufs/lufs_thread.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  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 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
       25 +/*
       26 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       27 + */
  25   28  
  26   29  #include <sys/systm.h>
  27   30  #include <sys/types.h>
  28   31  #include <sys/vnode.h>
  29   32  #include <sys/errno.h>
  30   33  #include <sys/sysmacros.h>
  31   34  #include <sys/debug.h>
  32   35  #include <sys/kmem.h>
  33   36  #include <sys/conf.h>
  34   37  #include <sys/proc.h>
↓ open down ↓ 36 lines elided ↑ open up ↑
  71   74   * Key for thread specific data for the roll thread to
  72   75   * bypass snapshot throttling
  73   76   */
  74   77  uint_t bypass_snapshot_throttle_key;
  75   78  
  76   79  /*
  77   80   * externs
  78   81   */
  79   82  extern kmutex_t         ml_scan;
  80   83  extern kcondvar_t       ml_scan_cv;
  81      -extern int              maxphys;
  82   84  
  83   85  static void
  84   86  trans_roll_wait(mt_map_t *logmap, callb_cpr_t *cprinfop)
  85   87  {
  86   88          mutex_enter(&logmap->mtm_mutex);
  87   89          logmap->mtm_ref = 0;
  88   90          if (logmap->mtm_flags & MTM_FORCE_ROLL) {
  89   91                  cv_broadcast(&logmap->mtm_from_roll_cv);
  90   92          }
  91   93          logmap->mtm_flags &= ~(MTM_FORCE_ROLL | MTM_ROLLING);
↓ open down ↓ 507 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX