Re: [PATCH] mm/dmapool.c: add lock protect in dma_pool_destroy

2020-07-22 Thread Matthew Wilcox
On Wed, Jul 22, 2020 at 05:05:16PM +0800, qiang.zh...@windriver.com wrote: > When traversing "pool->page" linked list, to prevent possible > other path operations this list, causing it to be destroyed, we > should add lock protect for this list in dma_pool_destroy func. The pool is being destroyed

[PATCH] mm/dmapool.c: add lock protect in dma_pool_destroy

2020-07-22 Thread qiang.zhang
From: Zhang Qiang When traversing "pool->page" linked list, to prevent possible other path operations this list, causing it to be destroyed, we should add lock protect for this list in dma_pool_destroy func. Signed-off-by: Zhang Qiang --- mm/dmapool.c | 11 +-- 1 file changed, 9 insert