From e0f0b6379a33376403e84819921a9626e7eb655b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 26 Oct 2021 10:50:44 +0200 Subject: [PATCH] Kernel: Make WorkQueue::WorkItem slab allocated --- Kernel/WorkQueue.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Kernel/WorkQueue.h b/Kernel/WorkQueue.h index 01191e5405..f4f0f55979 100644 --- a/Kernel/WorkQueue.h +++ b/Kernel/WorkQueue.h @@ -9,6 +9,7 @@ #include #include +#include #include namespace Kernel { @@ -45,6 +46,9 @@ private: explicit WorkQueue(StringView); struct WorkItem { + MAKE_SLAB_ALLOCATED(WorkItem); + + public: IntrusiveListNode m_node; Function function; };