[PATCH v2] mm, hwpoison: Try to recover from copy-on write faults

Luck, Tony tony.luck at intel.com
Fri Oct 21 14:57:33 AEDT 2022


>> +	INIT_WORK(&p->work, do_sched_memory_failure);
>> +	p->pfn = pfn;
>> +	schedule_work(&p->work);
>
> There is already memory_failure_queue() that can do this. Can we use it directly?

Miaohe Lin,

Yes, can use that. A thousand thanks for pointing it out. I just tried it, and it works
perfectly.

I think I'll need to add an empty stub version for the CONFIG_MEMORY_FAILURE=n
build. But that's trivial.

-Tony



More information about the Linuxppc-dev mailing list