[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7aceb944-4c53-8cc8-473d-fc8a9da0ef11@bytedance.com>
Date: Wed, 11 May 2022 16:18:16 +0800
From: zhenwei pi <pizhenwei@...edance.com>
To: HORIGUCHI NAOYA(堀口 直也)
<naoya.horiguchi@....com>
Cc: "akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: Re: [PATCH v2 5/5] mm/memory-failure.c: simplify
num_poisoned_pages_inc/dec
On 5/11/22 16:20, HORIGUCHI NAOYA(堀口 直也) wrote:
> On Mon, May 09, 2022 at 06:56:41PM +0800, zhenwei pi wrote:
>> Originally, do num_poisoned_pages_inc() in memory failure routine,
>> use num_poisoned_pages_dec() to rollback the number if filtered/
>> cancelled.
>>
>> Suggested by Naoya, do num_poisoned_pages_inc() only in
>> action_result(), this make this clear and simple.
>>
>> Signed-off-by: zhenwei pi <pizhenwei@...edance.com>
>
> I found that action_result(MF_MSG_UNKNOWN) in try_memory_failure_hugetlb()
> does not follow the rule, so that could break the counter.
> I don't think this is the issue in your patch, so I'm fine with this patch.
>
> I'll submit a fix later for this, which will add hugetlb_set_page_hwpoison()
> in the path. That will have a bit non-trivial change because we need do
> this in hugeltb_lock.
>
> Anyway, thank you for this work.
>
> Acked-by: Naoya Horiguchi <naoya.horiguchi@....com>
A million thanks to you!
--
zhenwei pi
Powered by blists - more mailing lists