Hi,

On 2023/09/24 3:21, Andrew Doran wrote:
Index: src/common/lib/libc/gen/radixtree.c
diff -u src/common/lib/libc/gen/radixtree.c:1.31 
src/common/lib/libc/gen/radixtree.c:1.32
--- src/common/lib/libc/gen/radixtree.c:1.31    Tue Sep 12 16:17:21 2023
+++ src/common/lib/libc/gen/radixtree.c Sat Sep 23 18:21:11 2023
...
@@ -346,10 +331,11 @@ radix_tree_await_memory(void)
        int i;
for (i = 0; i < __arraycount(nodes); i++) {
-               nodes[i] = pool_cache_get(radix_tree_node_cache, PR_WAITOK);
+               nodes[i] = kmem_intr_alloc(sizeof(struct radix_tree_node),
+                   KM_SLEEP);
        }
        while (--i >= 0) {
-               pool_cache_put(radix_tree_node_cache, nodes[i]);
+               kmem_free(nodes[i], sizeof(struct radix_tree_node));
        }
  }

kmem_intr_free() here?

Thanks,
rin

Reply via email to