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
@@ -11601,12 +11601,12 @@
continue;
}
ASSERT(buf->dtb_xamot == NULL);
- if ((buf->dtb_tomax = kmem_zalloc(size,
- KM_NOSLEEP | KM_NORMALPRI)) == NULL)
+ if ((buf->dtb_tomax = kmem_zalloc(size, KM_NOSLEEP_LAZY)) ==
+ NULL)
goto err;
buf->dtb_size = size;
buf->dtb_flags = flags;
buf->dtb_offset = 0;
@@ -11613,12 +11613,12 @@
buf->dtb_drops = 0;
if (flags & DTRACEBUF_NOSWITCH)
continue;
- if ((buf->dtb_xamot = kmem_zalloc(size,
- KM_NOSLEEP | KM_NORMALPRI)) == NULL)
+ if ((buf->dtb_xamot = kmem_zalloc(size, KM_NOSLEEP_LAZY)) ==
+ NULL)
goto err;
} while ((cp = cp->cpu_next) != cpu_list);
return (0);
@@ -13562,11 +13562,11 @@
VERIFY(dstate->dtds_chunksize < LONG_MAX);
if (size < (min = dstate->dtds_chunksize + sizeof (dtrace_dynhash_t)))
size = min;
- if ((base = kmem_zalloc(size, KM_NOSLEEP | KM_NORMALPRI)) == NULL)
+ if ((base = kmem_zalloc(size, KM_NOSLEEP_LAZY)) == NULL)
return (ENOMEM);
dstate->dtds_size = size;
dstate->dtds_base = base;
dstate->dtds_percpu = kmem_cache_alloc(dtrace_state_cache, KM_SLEEP);
@@ -14089,11 +14089,11 @@
rval = ENOMEM;
goto out;
}
spec = kmem_zalloc(nspec * sizeof (dtrace_speculation_t),
- KM_NOSLEEP | KM_NORMALPRI);
+ KM_NOSLEEP_LAZY);
if (spec == NULL) {
rval = ENOMEM;
goto out;
}
@@ -14100,12 +14100,11 @@
state->dts_speculations = spec;
state->dts_nspeculations = (int)nspec;
for (i = 0; i < nspec; i++) {
- if ((buf = kmem_zalloc(bufsize,
- KM_NOSLEEP | KM_NORMALPRI)) == NULL) {
+ if ((buf = kmem_zalloc(bufsize, KM_NOSLEEP_LAZY)) == NULL) {
rval = ENOMEM;
goto err;
}
spec[i].dtsp_buffer = buf;