Re: [PATCH 0/9] Hugepage migration (v2)

From: Andi Kleen
Date: Tue Aug 17 2010 - 05:40:22 EST


> When get_user_pages_fast() is called before try_to_unmap(),
> direct I/O code increments refcount on the target page.
> Because this refcount is not associated to the mapping,
> migration code will find remaining refcounts after try_to_unmap()
> unmaps all mappings. Then refcount check decides migration to fail,
> so direct I/O is continued safely.

This would imply that direct IO can make migration fail arbitarily.
Also not good. Should we add some retries, at least for the soft offline
case?

-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/