lkml.org 
[lkml]   [2009]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 14/24] HWPOISON: return 0 if page is assured to be isolated
On Wed, Dec 02, 2009 at 11:12:45AM +0800, Wu Fengguang wrote:
> Introduce hpc.page_isolated to record if page is assured to be
> isolated, ie. it won't be accessed in normal kernel code paths
> and therefore won't trigger another MCE event.
>
> __memory_failure() will now return 0 to indicate that page is
> really isolated. Note that the original used action result
> RECOVERED is not a reliable criterion.
>
> Note that we now don't bother to risk returning 0 for the
> rare unpoison/truncated cases.

That's the only user of the new hwpoison_control structure right?
I think I prefer for that single bit to extend the return values
and keep the arguments around. structures are not nice to read.

I'll change the code.

-Andi


\
 
 \ /
  Last update: 2009-12-02 13:49    [W:0.249 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site