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
        
*** 202,212 ****
           * Rather than sleep for this relatively large allocation,
           * allow the allocation to fail and return an error.
           * The client should then fall back to normal copy.
           */
          args->bufsize = smb2_copychunk_max_seg;
!         args->buffer = kmem_alloc(args->bufsize, KM_NOSLEEP | KM_NORMALPRI);
          if (args->buffer == NULL) {
                  status = NT_STATUS_INSUFF_SERVER_RESOURCES;
                  goto out;
          }
  
--- 202,212 ----
           * Rather than sleep for this relatively large allocation,
           * allow the allocation to fail and return an error.
           * The client should then fall back to normal copy.
           */
          args->bufsize = smb2_copychunk_max_seg;
!         args->buffer = kmem_alloc(args->bufsize, KM_NOSLEEP_LAZY);
          if (args->buffer == NULL) {
                  status = NT_STATUS_INSUFF_SERVER_RESOURCES;
                  goto out;
          }