Re: [PATCH 3/3] balancenuma: fix page locking in migrating thp

2012-11-24 Thread Mel Gorman
On Sat, Nov 24, 2012 at 12:27:39PM +0800, Hillf Danton wrote: > If fail to migrate thp(due to unsuccessful isolation), and if the original > pmd entry is changed after reaquiring page table lock, it is unsafe to > release the page lock as page maybe unstable. > > It is fixed by raising extra page

[PATCH 3/3] balancenuma: fix page locking in migrating thp

2012-11-23 Thread Hillf Danton
If fail to migrate thp(due to unsuccessful isolation), and if the original pmd entry is changed after reaquiring page table lock, it is unsafe to release the page lock as page maybe unstable. It is fixed by raising extra page count before trying migration. Signed-off-by: Hillf Danton --- --- a/