Re: [RFC 1/3] mm, Make __get_user_pages return -EHWPOISON for HWPOISON page optionally

2010-12-22 Thread Andrew Morton
On Wed, 22 Dec 2010 10:51:55 +0800 Huang Ying ying.hu...@intel.com wrote: Make __get_user_pages return -EHWPOISON for HWPOISON page only if FOLL_HWPOISON is specified. With this patch, the interested callers can distinguish HWPOISON page from general FAULT page, while other callers will

Re: [RFC 1/3] mm, Make __get_user_pages return -EHWPOISON for HWPOISON page optionally

2010-12-22 Thread Huang Ying
Hi, Andrew, Thanks for comments. On Thu, 2010-12-23 at 07:07 +0800, Andrew Morton wrote: On Wed, 22 Dec 2010 10:51:55 +0800 Huang Ying ying.hu...@intel.com wrote: Make __get_user_pages return -EHWPOISON for HWPOISON page only if FOLL_HWPOISON is specified. With this patch, the

Re: [RFC 1/3] mm, Make __get_user_pages return -EHWPOISON for HWPOISON page optionally

2010-12-22 Thread Andrew Morton
On Thu, 23 Dec 2010 08:39:59 +0800 Huang Ying ying.hu...@intel.com wrote: --- a/mm/memory.c +++ b/mm/memory.c @@ -1449,9 +1449,16 @@ int __get_user_pages(struct task_struct if (ret VM_FAULT_ERROR) { if (ret VM_FAULT_OOM)