Print this page
NEX-16625 Max amount of iSCSI targets is hard limited with doorfs core definitions
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
6209 libc mutexes break kernel writers hearts
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Dan McDonald <danmcd@omniti.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/inc/thr_uberdata.h
          +++ new/usr/src/lib/libc/inc/thr_uberdata.h
↓ open down ↓ 203 lines elided ↑ open up ↑
 204  204   *      2. If non-NULL, it points to uberdata.uberflags, so that tests of
 205  205   *         uberflags can be made without additional memory references.
 206  206   * This allows the common case of _mutex_lock() and _mutex_unlock() for
 207  207   * USYNC_THREAD mutexes with no error detection and no lock statistics
 208  208   * to be optimized for speed.
 209  209   */
 210  210  
 211  211  /* double the default stack size for 64-bit processes */
 212  212  #ifdef _LP64
 213  213  #define MINSTACK        (8 * 1024)
 214      -#define DEFAULTSTACK    (2 * 1024 * 1024)
      214 +#define DEFAULTSTACK    (8 * 1024 * 1024)
 215  215  #else
 216  216  #define MINSTACK        (4 * 1024)
 217      -#define DEFAULTSTACK    (1024 * 1024)
      217 +#define DEFAULTSTACK    (4 * 1024 * 1024)
 218  218  #endif
 219  219  
 220  220  #define MUTEX_TRY       0
 221  221  #define MUTEX_LOCK      1
 222  222  #define MUTEX_NOCEIL    0x40
 223  223  
 224  224  #if defined(__x86)
 225  225  
 226  226  typedef struct {        /* structure returned by fnstenv */
 227  227          int     fctrl;          /* control word */
↓ open down ↓ 1318 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX