Print this page
5513 KM_NORMALPRI should be documented in kmem_alloc(9f) and kmem_cache_create(9f) man pages
14465 Present KM_NOSLEEP_LAZY as documented interface
Change-Id: I002ec28ddf390650f1fcba1ca94f6abfdb241439

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
          +++ new/usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
↓ open down ↓ 2381 lines elided ↑ open up ↑
2382 2382  
2383 2383          /*
2384 2384           * All transfers should be an integral multiple of the sector size.
2385 2385           */
2386 2386          ASSERT((big_buf_size % xfer_size) == 0);
2387 2387  
2388 2388          /*
2389 2389           * Don't sleep for the allocation, and don't make the system
2390 2390           * reclaim memory.  Trade higher I/Os if in a low-memory situation.
2391 2391           */
2392      -        big_buf = kmem_alloc(big_buf_size, KM_NOSLEEP | KM_NORMALPRI);
     2392 +        big_buf = kmem_alloc(big_buf_size, KM_NOSLEEP_LAZY);
2393 2393  
2394 2394          if (big_buf == NULL) {
2395 2395                  /*
2396 2396                   * Just send it in terms of of the transmitted data.  This
2397 2397                   * will be very slow.
2398 2398                   */
2399 2399                  DTRACE_PROBE1(write__same__low__memory, uint64_t, big_buf_size);
2400 2400                  big_buf = scmd->trans_data;
2401 2401                  big_buf_size = scmd->trans_data_len;
2402 2402          } else {
↓ open down ↓ 1705 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX