From fe33ab7ba1c3d7c2227aac530a42873ce0f4f9e4 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Thu, 21 Mar 2024 12:18:10 +0100 Subject: [PATCH] mem: make brick_mem_reserve reentrant --- kernel/brick_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/brick_mem.c b/kernel/brick_mem.c index 4ecd88fc..dad14c07 100644 --- a/kernel/brick_mem.c +++ b/kernel/brick_mem.c @@ -708,7 +708,7 @@ int brick_mem_reserve(void) int i; brick_mem_freelist_max[order] += max; - BRICK_INF("preallocating %d at order %d (new maxlevel = %d)\n", max, order, brick_mem_freelist_max[order]); + brick_pre_reserve[order] = 0; max = brick_mem_freelist_max[order] - atomic_read(&freelist_count[order]); if (max >= 0) {