lkml.org 
[lkml]   [2022]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v5 4/4] mm/hwpoison: introduce per-memory_block hwpoison counter counter
From
>   /*
> @@ -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

\
 
 \ /
  Last update: 2022-09-26 10:07    [W:0.101 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site