Re: Re: [PATCH] mm/hwpoison: dissolve error hugepages of file mapping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Matthew,

On Thu, 15 Jul 2021 at 16:22:40 +0100, Matthew Wilcox wrote:
> How is that safe?  If you're going to dissolve the huge page, you
> need to figure out which subpage needs to have the HWPoison flag set.

Thanks for your review. The p that we pass to the __page_handle_poison()
is the error subpage. And we will move the HWPoison flag to subpage in
the dissolve_free_huge_page():

if (PageHWPoison(head) && page != head) {
	SetPageHWPoison(page);
	ClearPageHWPoison(head);
}

Thanks,
Bin Wang





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux