[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <40912cc7-4d8d-41f0-8256-add55ae41597.liusong@linux.alibaba.com>
Date: Mon, 18 Jul 2022 10:07:26 +0800
From: "liusong" <liusong@...ux.alibaba.com>
To: "Andrew Morton" <akpm@...ux-foundation.org>
Cc: "linux-mm" <linux-mm@...ck.org>,
"linux-kernel" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mm/dmapool.c: avoid duplicate memset within dma_pool_alloc
This patch can not only consider direct alloc, with config CONFIG_DMA_DECLARE_COHERENT,
in "dma_alloc_from_dev_coherent", which will also explicitly memset the allocated memory to 0,
so this situation needs to be considered. It is beneficial to the process of calling "dma_pool_zalloc".
Next, a V2 patch will be submitted.
Thanks.
Powered by blists - more mailing lists