Re: [PATCH v2] mm/hugetlb: fix race when migrate pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed 20-07-16 14:45:01, Michal Hocko wrote:
[...]
> I was talking to Mel (CCed) and he has raised a good question. So if you
> encounter a page under migration and fail to share the pmd with it how
> can you have a proper content of the target page in the end?

Hmm, I was staring into the code some more and it seems this would be OK
because we should hit hugetlb_no_page with the newel instantiated pmd
and associate it with a page from the radix tree. So unless I am missing
something the corruption shouldn't be possible.

I believe the post pmd_populate race is still there, though, so I
believe the approach should be rethought.

-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]