On Tue, Jul 06, 2010 at 09:13:37AM +0200, Andi Kleen wrote:
I see. I understood we should work on locking problem in now.
I digged and learned hugepage IO can happen in direct IO from/to
hugepage or coredump of hugepage user.
We can resolve race between memory failure and IO by checking
page lock and writeback flag, right?
BTW I surveyed direct IO code, but page lock seems not to be taken.
Am I missing something?
(Before determining whether we lock all subpages or only headpage,
I want to clarify how current code for non-hugepage resolves this problem.)
Thanks,
Naoya Horiguchi
--