Re: [PATCH 06/24] HWPOISON: abort on failed unmap

From: Andi Kleen
Date: Wed Dec 02 2009 - 08:11:55 EST


> * Now take care of user space mappings.
> + * Abort on fail: __remove_from_page_cache() assumes unmapped page.
> */
> - hwpoison_user_mappings(p, pfn, trapno);
> + if (hwpoison_user_mappings(p, pfn, trapno) != SWAP_SUCCESS) {
> + res = -EBUSY;
> + goto out;

It would be good to print something in this case.

Did you actually see it during testing?

Or maybe loop forever in the unmapper.

-Andi
--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/