mempool-clarify-behavior-of-mempool_alloc_preallocated.patch removed from -mm tree
The quilt patch titled
Subject: mempool: clarify behavior of mempool_alloc_preallocated()
has been removed from the -mm tree. Its filename was
mempool-clarify-behavior-of-mempool_alloc_preallocated.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Thomas Weißschuh <[email protected]>
Subject: mempool: clarify behavior of mempool_alloc_preallocated()
Date: Tue, 14 Oct 2025 14:17:23 +0200
The documentation of that function promises to never sleep. However on PREEMPT_RT a spinlock_t might in fact sleep.
Reword the documentation so users can predict its behavior better.
mempool could also replace spinlock_t with raw_spinlock_t which doesn't sleep even on PREEMPT_RT but that would take away the improved preemptibility of sleeping locks.
---
mm/mempool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/mempool.c renamed from mm/mempool.c~mempool-clarify-behavior-of-mempool_alloc_preallocated +2 -2
@@ -461,8 +461,8 @@ EXPORT_SYMBOL(mempool_alloc_noprof);* mempool_create(). * * This function is similar to mempool_alloc, but it only attempts allocating -* an element from the preallocated elements. It does not sleep and immediately -* returns if no preallocated elements are available. +* an element from the preallocated elements. It only takes a single spinlock_t +* and immediately returns if no preallocated elements are available. * * Return: pointer to the allocated element or %NULL if no elements are * available.
_
Patches currently in -mm which might be from [email protected] are