summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/fs/nfs/nfs_auth.c
diff options
context:
space:
mode:
authorDan McDonald <danmcd@joyent.com>2022-01-31 19:54:55 -0500
committerDan McDonald <danmcd@joyent.com>2022-02-22 10:44:37 -0500
commitca783257c986cddcc674ae22916a6766b98a2d36 (patch)
treea5ffb2e5714efce67635883089a2b60ec9a7bd2a /usr/src/uts/common/fs/nfs/nfs_auth.c
parent36589d6bb0cdae89e166b57b0d64ae56d53247d9 (diff)
downloadillumos-joyent-ca783257c986cddcc674ae22916a6766b98a2d36.tar.gz
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 Reviewed by: Andy Fiddaman <andy@omnios.org> Approved by: Robert Mustacchi <rm@fingolfin.org>
Diffstat (limited to 'usr/src/uts/common/fs/nfs/nfs_auth.c')
-rw-r--r--usr/src/uts/common/fs/nfs/nfs_auth.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr/src/uts/common/fs/nfs/nfs_auth.c b/usr/src/uts/common/fs/nfs/nfs_auth.c
index e132346545..c20a18f433 100644
--- a/usr/src/uts/common/fs/nfs/nfs_auth.c
+++ b/usr/src/uts/common/fs/nfs/nfs_auth.c
@@ -922,7 +922,7 @@ nfsauth_cache_get(struct exportinfo *exi, struct svc_req *req, int flavor,
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;
@@ -930,8 +930,7 @@ nfsauth_cache_get(struct exportinfo *exi, struct svc_req *req, int flavor,
* 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;
@@ -972,8 +971,7 @@ nfsauth_cache_get(struct exportinfo *exi, struct svc_req *req, int flavor,
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;
@@ -1071,7 +1069,7 @@ nfsauth_cache_get(struct exportinfo *exi, struct svc_req *req, int flavor,
* 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));