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,939 ****
if (c == NULL) {
struct auth_cache_clnt *nc;
rw_exit(&exi->exi_cache_lock);
! nc = kmem_alloc(sizeof (*nc), KM_NOSLEEP | KM_NORMALPRI);
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);
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);
--- 920,938 ----
if (c == NULL) {
struct auth_cache_clnt *nc;
rw_exit(&exi->exi_cache_lock);
! 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_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,981 ****
if (p == NULL) {
struct auth_cache *np;
rw_exit(&c->authc_lock);
! np = kmem_cache_alloc(exi_cache_handle,
! KM_NOSLEEP | KM_NORMALPRI);
if (np == NULL) {
rw_exit(&exi->exi_cache_lock);
goto retrieve;
}
--- 969,979 ----
if (p == NULL) {
struct auth_cache *np;
rw_exit(&c->authc_lock);
! np = kmem_cache_alloc(exi_cache_handle, KM_NOSLEEP_LAZY);
if (np == NULL) {
rw_exit(&exi->exi_cache_lock);
goto retrieve;
}
*** 1069,1079 ****
/*
* We need a copy of gids for the
* auth_cache entry
*/
tmpgids = kmem_alloc(tmpngids * sizeof (gid_t),
! KM_NOSLEEP | KM_NORMALPRI);
if (tmpgids != NULL)
bcopy(*gids, tmpgids,
tmpngids * sizeof (gid_t));
}
--- 1067,1077 ----
/*
* We need a copy of gids for the
* auth_cache entry
*/
tmpgids = kmem_alloc(tmpngids * sizeof (gid_t),
! KM_NOSLEEP_LAZY);
if (tmpgids != NULL)
bcopy(*gids, tmpgids,
tmpngids * sizeof (gid_t));
}