From: Laura Abbott <labbott@redhat.com>
To: "Zengtao (B)" <prime.zeng@hisilicon.com>,
Dan Carpenter <dan.carpenter@oracle.com>,
"Chenfeng (puck)" <puck.chen@hisilicon.com>
Cc: "sumit.semwal@linaro.org" <sumit.semwal@linaro.org>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"arve@android.com" <arve@android.com>,
"tkjos@android.com" <tkjos@android.com>,
"maco@android.com" <maco@android.com>,
"devel@driverdev.osuosl.org" <devel@driverdev.osuosl.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: 答复: 答复: [PATCH] ION: Sys_heap: fix the incorrect pool->gfp_mask setting
Date: Thu, 11 Jan 2018 10:29:52 -0800 [thread overview]
Message-ID: <72ba0d4b-faa2-13c1-df4b-add6aa214389@redhat.com> (raw)
In-Reply-To: <678F3D1BB717D949B966B68EAEB446ED0C833C95@DGGEMM506-MBX.china.huawei.com>
On 01/10/2018 06:06 PM, Zengtao (B) wrote:
>> -----邮件原件-----
>> 发件人: Laura Abbott [mailto:labbott@redhat.com]
>> 发送时间: 2018年1月11日 8:01
>> 收件人: Zengtao (B) <prime.zeng@hisilicon.com>; Dan Carpenter
>> <dan.carpenter@oracle.com>; Chenfeng (puck) <puck.chen@hisilicon.com>
>> 抄送: sumit.semwal@linaro.org; gregkh@linuxfoundation.org;
>> arve@android.com; tkjos@android.com; maco@android.com;
>> devel@driverdev.osuosl.org; linux-kernel@vger.kernel.org
>> 主题: Re: 答复: [PATCH] ION: Sys_heap: fix the incorrect pool->gfp_mask
>> setting
>>
>> On 01/09/2018 04:06 AM, Zengtao (B) wrote:
>>>> -----邮件原件-----
>>>> 发件人: Dan Carpenter [mailto:dan.carpenter@oracle.com]
>>>> 发送时间: 2018年1月9日 17:14
>>>> 收件人: Chenfeng (puck) <puck.chen@hisilicon.com>
>>>> 抄送: Zengtao (B) <prime.zeng@hisilicon.com>; labbott@redhat.com;
>>>> sumit.semwal@linaro.org; gregkh@linuxfoundation.org;
>>>> arve@android.com; tkjos@android.com; maco@android.com;
>>>> devel@driverdev.osuosl.org; linux-kernel@vger.kernel.org
>>>> 主题: Re: [PATCH] ION: Sys_heap: fix the incorrect pool->gfp_mask
>>>> setting
>>>>
>>>> On Tue, Jan 09, 2018 at 11:30:09AM +0800, Chen Feng wrote:
>>>>>
>>>>>
>>>>> On 2018/1/9 18:43, Zeng Tao wrote:
>>>>>> This issue is introduced by the commit <e7f63771b60e> ("ION: Sys_heap:
>>>>>> Add cached pool to spead up cached buffer alloc"),
>>>>
>>>> Use the Fixes tag.
>>>>
>>>> Fixes: e7f63771b60e ("ION: Sys_heap: Add cached pool to spead up
>>>> cached buffer alloc")
>>>>
>>> Agree, thanks.
>>>
>>
>> If you're going to be fixing this, it would be good to fix the other problems
>> pointed out (stop with the #define of the flags).
>>
> It is OK, I will fix in the new version fix.
>
> And to make the code more explicit, I have to choices of fixes:
> Choice 1:
> if (orders[i] > 4)
> gfp_flags = high_order_gfp_flags;
> else
> gfp_flags = low_order_gfp_flags;
> Choice 2:
> gfp_flags = (orders[i] > 4) ? high_order_gfp_flags : low_order_gfp_flags;
>
I prefer #1, but please make sure you are following the
suggestions in https://marc.info/?l=linux-kernel&m=151518104214191&w=2
> Any suggestion ?
>
>
> BTW, I found another problem related:
> Currently the order 4 and order 0 allocation flag haven't got the __GFP_NOWARN set,
> if the order 4 allocation failed but the allocation of order 0 success, it will print warning
> message which is useless.
>
> Of course, this is not related to this fix, but this is what I have met when test this fix.
>
Yes, go ahead and fix that in a separate patch too.
> Thanks
> Zengtao
>
Thanks,
Laura
prev parent reply other threads:[~2018-01-11 18:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-09 10:43 Zeng Tao
2018-01-09 3:30 ` Chen Feng
2018-01-09 9:14 ` Dan Carpenter
2018-01-09 12:06 ` 答复: " Zengtao (B)
2018-01-11 0:00 ` Laura Abbott
2018-01-11 2:06 ` 答复: " Zengtao (B)
2018-01-11 18:29 ` Laura Abbott [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=72ba0d4b-faa2-13c1-df4b-add6aa214389@redhat.com \
--to=labbott@redhat.com \
--cc=arve@android.com \
--cc=dan.carpenter@oracle.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maco@android.com \
--cc=prime.zeng@hisilicon.com \
--cc=puck.chen@hisilicon.com \
--cc=sumit.semwal@linaro.org \
--cc=tkjos@android.com \
/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
all inboxes | Powered by JetHome®