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

@@ -920,20 +920,19 @@
         if (c == NULL) {
                 struct auth_cache_clnt *nc;
 
                 rw_exit(&exi->exi_cache_lock);
 
-                nc = kmem_alloc(sizeof (*nc), KM_NOSLEEP | KM_NORMALPRI);
+                nc = kmem_alloc(sizeof (*nc), KM_NOSLEEP_LAZY);
                 if (nc == NULL)
                         goto retrieve;
 
                 /*
                  * Initialize the new auth_cache_clnt
                  */
                 nc->authc_addr = addr;
-                nc->authc_addr.buf = kmem_alloc(addr.maxlen,
-                    KM_NOSLEEP | KM_NORMALPRI);
+                nc->authc_addr.buf = kmem_alloc(addr.maxlen, KM_NOSLEEP_LAZY);
                 if (addr.maxlen != 0 && nc->authc_addr.buf == NULL) {
                         kmem_free(nc, sizeof (*nc));
                         goto retrieve;
                 }
                 bcopy(addr.buf, nc->authc_addr.buf, addr.len);

@@ -970,12 +969,11 @@
         if (p == NULL) {
                 struct auth_cache *np;
 
                 rw_exit(&c->authc_lock);
 
-                np = kmem_cache_alloc(exi_cache_handle,
-                    KM_NOSLEEP | KM_NORMALPRI);
+                np = kmem_cache_alloc(exi_cache_handle, KM_NOSLEEP_LAZY);
                 if (np == NULL) {
                         rw_exit(&exi->exi_cache_lock);
                         goto retrieve;
                 }
 

@@ -1069,11 +1067,11 @@
                                 /*
                                  * We need a copy of gids for the
                                  * auth_cache entry
                                  */
                                 tmpgids = kmem_alloc(tmpngids * sizeof (gid_t),
-                                    KM_NOSLEEP | KM_NORMALPRI);
+                                    KM_NOSLEEP_LAZY);
                                 if (tmpgids != NULL)
                                         bcopy(*gids, tmpgids,
                                             tmpngids * sizeof (gid_t));
                         }