Skip to contentSkip to conversation

dmapool-speedup-dmapool_debug-with-init_on_alloc.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Feb 26, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: dmapool: speedup DMAPOOL_DEBUG with init_on_alloc
has been removed from the -mm tree. Its filename was
dmapool-speedup-dmapool_debug-with-init_on_alloc.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Tony Battersby <[email protected]>
Subject: dmapool: speedup DMAPOOL_DEBUG with init_on_alloc
Date: Thu, 26 Jan 2023 13:51:18 -0800

Avoid double-memset of the same allocated memory in dma_pool_alloc() when both DMAPOOL_DEBUG is enabled and init_on_alloc=1.

---

mm/dmapool.c renamed from mm/dmapool.c~dmapool-speedup-dmapool_debug-with-init_on_alloc +1 -1
@@ -356,7 +356,7 @@ void *dma_pool_alloc(struct dma_pool *po
 			break;
 		}
 	}
-	if (!(mem_flags & __GFP_ZERO))
+	if (!want_init_on_alloc(mem_flags))
 		memset(retval, POOL_POISON_ALLOCATED, pool->size);
 #endif
 	spin_unlock_irqrestore(&pool->lock, flags);

_

Patches currently in -mm which might be from [email protected] are