aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/kmem.h
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2012-12-10 13:40:03 -0800
committerBrian Behlendorf <[email protected]>2012-12-12 09:56:54 -0800
commit33e94ef1dd2678e28a5fbdb80f4ce35fd8c85974 (patch)
tree2e47c07c42030aee3d1922abec2765d75f2f6e3b /include/sys/kmem.h
parenta10287e00d13c4c4dbbff14f42b00b03da363fcb (diff)
kmem-cache: Use a taskq for async allocations
Shift the asynchronous allocations over to use the taskq interfaces. This allows us to abandon the kernels delayed work queue interface and all the compatibility code it requires. This code never actually used the delay functionality it was just done this way to leverage the existing compatibility code. All that is required is a thread context to perform the allocation in. The only thing clever in this change is that we take advantage of the preallocated task queue entries to avoid a memory allocation. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'include/sys/kmem.h')
-rw-r--r--include/sys/kmem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/kmem.h b/include/sys/kmem.h
index e189922ef..6904bec3f 100644
--- a/include/sys/kmem.h
+++ b/include/sys/kmem.h
@@ -432,7 +432,7 @@ typedef struct spl_kmem_slab {
typedef struct spl_kmem_alloc {
struct spl_kmem_cache *ska_cache; /* Owned by cache */
int ska_flags; /* Allocation flags */
- struct delayed_work ska_work; /* Allocation work */
+ taskq_ent_t ska_tqe; /* Task queue entry */
} spl_kmem_alloc_t;
typedef struct spl_kmem_emergency {