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

@@ -716,12 +716,11 @@
  */
 static void *
 zcp_lua_alloc(void *ud, void *ptr, size_t osize, size_t nsize)
 {
         zcp_alloc_arg_t *allocargs = ud;
-        int flags = (allocargs->aa_must_succeed) ?
-            KM_SLEEP : (KM_NOSLEEP | KM_NORMALPRI);
+        int flags = (allocargs->aa_must_succeed) ? KM_SLEEP : KM_NOSLEEP_LAZY;
 
         if (nsize == 0) {
                 if (ptr != NULL) {
                         int64_t *allocbuf = (int64_t *)ptr - 1;
                         int64_t allocsize = *allocbuf;