Re: [PATCH v2] mm/huge_memory: don't unpoison huge_zero_folio

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

 



On Wed, May 15, 2024 at 05:55:39PM +0200, David Hildenbrand wrote:
> > +	if (is_huge_zero_folio(folio)) {
> > +		unpoison_pr_info("Unpoison: huge zero page is not supported %#lx\n",
> > +				 pfn, &unpoison_rs);
> > +		goto unlock_mutex;
> > +	}
> > +

Sorry for spamming your reply David, but for some unknown reason I am not able
to find the original patch in my mailbox, in none of the two accountes I am
subscribed, so I guess I will have to reply here.

Just two things

1) We do not care if someone grabs a refcount for huge_zero_folio,
   because since it is not supported anyway the outcome will not change.
   Also, AFAIK, there is no chance we can unpoison that folio.
   Therefore, I would just lift the check two blocks and place it right after
   the hw_memory_failure check.

2) The whole thing is unsupported, but you will return -EBUSY while you
   should be returning -EOPNOTSUPP AFAICS.

with that you can add:

Reviewed-by: Oscar Salvador <osalvador@xxxxxxx>

 

-- 
Oscar Salvador
SUSE Labs




[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