On Fri 17-06-16 21:13:12, zhongjiang wrote: > From: zhong jiang <[email protected]> > > huge_pmd_share accounts the number of pmds incorrectly when it races > with a parallel pud instantiation. vma_interval_tree_foreach will > increase the counter but then has to recheck the pud with the pte lock > held and the back off path should drop the increment. The previous > code would lead to an elevated pmd count which shouldn't be very > harmful (check_mm() might complain and oom_badness() might be marginally > confused) but this is worth fixing.
Kirill has posted a patch which is imho better [1] [1] http://lkml.kernel.org/r/[email protected] -- Michal Hocko SUSE Labs

