[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a99f0684-b075-7fc5-082a-2c0cc706574b@redhat.com>
Date: Mon, 26 Sep 2022 10:05:05 +0200
From: David Hildenbrand <david@...hat.com>
To: Naoya Horiguchi <naoya.horiguchi@...ux.dev>, linux-mm@...ck.org
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Miaohe Lin <linmiaohe@...wei.com>,
Mike Kravetz <mike.kravetz@...cle.com>,
Yang Shi <shy828301@...il.com>,
Oscar Salvador <osalvador@...e.de>,
Muchun Song <songmuchun@...edance.com>,
Jane Chu <jane.chu@...cle.com>,
Naoya Horiguchi <naoya.horiguchi@....com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v5 4/4] mm/hwpoison: introduce per-memory_block hwpoison
counter counter
> /*
> @@ -2414,6 +2417,10 @@ int unpoison_memory(unsigned long pfn)
> unlock_mutex:
> mutex_unlock(&mf_mutex);
> if (!ret || freeit) {
> + /*
> + * TODO: per-memory_block counter might break when the page
> + * size to be unpoisoned is larger than a memory_block.
> + */
Hmm, but that happens easily e.g., with 1 GiB hugetlb page and 128 MiB
memory section/block size. What would be the right thing to do here? The
TODO should rather spell that out instead of just stating the problem.
--
Thanks,
David / dhildenb
Powered by blists - more mailing lists