From: "liusong" <liusong@linux.alibaba.com>
To: "Andrew Morton" <akpm@linux-foundation.org>
Cc: "linux-mm" <linux-mm@kvack.org>,
"linux-kernel" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] mm/dmapool.c: avoid duplicate memset within dma_pool_alloc
Date: Mon, 18 Jul 2022 10:07:26 +0800 [thread overview]
Message-ID: <40912cc7-4d8d-41f0-8256-add55ae41597.liusong@linux.alibaba.com> (raw)
In-Reply-To: <13d6bf0e-b22b-4414-a091-264877904ab9.liusong@linux.alibaba.com>
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.
prev parent reply other threads:[~2022-07-18 2:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-14 3:25 Liu Song
2022-07-17 1:01 ` Andrew Morton
2022-07-17 16:42 ` liusong
2022-07-18 2:07 ` liusong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40912cc7-4d8d-41f0-8256-add55ae41597.liusong@linux.alibaba.com \
--to=liusong@linux.alibaba.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox