Print this page
8115 parallel zfs mount

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libfakekernel/common/cond.c
          +++ new/usr/src/lib/libfakekernel/common/cond.c
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4   * You may only use this file in accordance with the terms of version
   5    5   * 1.0 of the CDDL.
   6    6   *
   7    7   * A full copy of the text of the CDDL should have accompanied this
   8    8   * source.  A copy of the CDDL is also available via the Internet at
   9    9   * http://www.illumos.org/license/CDDL.
  10   10   */
  11   11  
  12   12  /*
  13   13   * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       14 + * Copyright 2017 RackTop Systems.
  14   15   */
  15   16  
  16   17  /*
  17   18   * condvar(9f)
  18   19   */
  19   20  
  20   21  /* This is the API we're emulating */
  21   22  #include <sys/condvar.h>
  22   23  
  23   24  #include <sys/errno.h>
↓ open down ↓ 87 lines elided ↑ open up ↑
 111  112  
 112  113  clock_t
 113  114  cv_timedwait_sig(kcondvar_t *cv, kmutex_t *mp, clock_t abstime)
 114  115  {
 115  116          clock_t delta;
 116  117  
 117  118          delta = abstime - ddi_get_lbolt();
 118  119          return (cv__twait(cv, mp, delta, 1));
 119  120  }
 120  121  
      122 +/*ARGSUSED*/
      123 +clock_t
      124 +cv_timedwait_hires(kcondvar_t *cv, kmutex_t *mp, hrtime_t tim, hrtime_t res,
      125 +        int flag)
      126 +{
      127 +        clock_t delta;
      128 +
      129 +        delta = tim;
      130 +        if (flag & CALLOUT_FLAG_ABSOLUTE)
      131 +                delta -= gethrtime();
      132 +        return (cv__twait(cv, mp, delta, 0));
      133 +}
      134 +
 121  135  clock_t
 122  136  cv_reltimedwait(kcondvar_t *cv, kmutex_t *mp, clock_t delta, time_res_t res)
 123  137  {
 124  138          _NOTE(ARGUNUSED(res))
 125  139  
 126  140          return (cv__twait(cv, mp, delta, 0));
 127  141  }
 128  142  
 129  143  clock_t
 130  144  cv_reltimedwait_sig(kcondvar_t *cv, kmutex_t *mp, clock_t delta,
↓ open down ↓ 50 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX