linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Jinjiang Tu <tujinjiang@huawei.com>
To: Zi Yan <ziy@nvidia.com>, Andrew Morton <akpm@linux-foundation.org>
Cc: David Hildenbrand <david@redhat.com>, <yuzhao@google.com>,
	<linux-mm@kvack.org>, <wangkefeng.wang@huawei.com>
Subject: Re: [PATCH v2] mm/contig_alloc: fix alloc_contig_range when __GFP_COMP and order < MAX_ORDER
Date: Wed, 28 May 2025 10:58:09 +0800	[thread overview]
Message-ID: <e7fd2841-2b3e-bfe1-9e65-1eb04411e009@huawei.com> (raw)
In-Reply-To: <3B848F95-2904-4E47-B682-F3EAC2877D14@nvidia.com>


在 2025/5/28 10:25, Zi Yan 写道:
> On 27 May 2025, at 22:19, Andrew Morton wrote:
>
>> On Mon, 12 May 2025 09:13:31 +0800 Jinjiang Tu <tujinjiang@huawei.com> wrote:
>>
>>>>> The change below makes the code cleaner. Acked-by: Zi Yan
>>>>> <ziy@nvidia.com>
>>>> Jinjiang, can you integrate that into your patch and resend?
>>> Sorry for late reply. I will do it today.
>>>
>> As far as I know, this is still pending.  The patch does address a
>> WARN() and it's cc:stable, so it's rather important.
>>
>> I'll move the v2 patch back into mm-new and shall keep it there to
>> remind me to bug people about it ;)
>>
>>
>> David (and everyone!), please don't be afraid to grab someone else's
>> patch, apply changes and send it in.  Stuff happens, and doing this is well
>> within accepted processes.
> Hi Andrew,
>
> Based on my understanding, this patch is fixing an out-of-tree driver
> issue, so Jinjiang is responsible to resolve David’s concerns.
>
> Hi Jinjiang,
>
> Let me know if I miss anything. And if you are not planning to keep
> working on it, please let Andrew know so he can drop it.

Yes, this issue doesn't exist for any in-tree users. I found v2 patch is buggy
and reply in the v1 patch (https://lore.kernel.org/all/80039e40-a518-a85b-b955-96fb048a2dd0@huawei.com/). The
fixed patch is little complicated.

Since there is no in-tree user currently, it is enough if we simply fail if the range order < MAX_ORDER with __GFP_COMP.

If it is valuable to handle this situation, in case in-tree users in the future need to allocate folio with order < MAX_ORDER,
I would like to keep working on it.

> Thanks.
>
> Best Regards,
> Yan, Zi


  reply	other threads:[~2025-05-28  2:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-21  1:36 Jinjiang Tu
2025-04-21  1:52 ` Zi Yan
2025-04-25 10:33 ` David Hildenbrand
2025-04-25 11:04   ` Zi Yan
2025-05-11  8:04     ` David Hildenbrand
2025-05-12  1:13       ` Jinjiang Tu
2025-05-28  2:19         ` Andrew Morton
2025-05-28  2:25           ` Zi Yan
2025-05-28  2:58             ` Jinjiang Tu [this message]
2025-05-28  8:43           ` David Hildenbrand
2025-05-28 12:14             ` Jinjiang Tu

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=e7fd2841-2b3e-bfe1-9e65-1eb04411e009@huawei.com \
    --to=tujinjiang@huawei.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@redhat.com \
    --cc=linux-mm@kvack.org \
    --cc=wangkefeng.wang@huawei.com \
    --cc=yuzhao@google.com \
    --cc=ziy@nvidia.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