diff options
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r-- | mm/mempolicy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 44b9d69900bc..4c0510e9e7f6 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
@@ -259,8 +259,11 @@ static int check_pte_range(struct vm_area_struct *vma, pmd_t *pmd, | |||
259 | 259 | ||
260 | if (flags & MPOL_MF_STATS) | 260 | if (flags & MPOL_MF_STATS) |
261 | gather_stats(page, private); | 261 | gather_stats(page, private); |
262 | else if (flags & (MPOL_MF_MOVE | MPOL_MF_MOVE_ALL)) | 262 | else if (flags & (MPOL_MF_MOVE | MPOL_MF_MOVE_ALL)) { |
263 | spin_unlock(ptl); | ||
263 | migrate_page_add(vma, page, private, flags); | 264 | migrate_page_add(vma, page, private, flags); |
265 | spin_lock(ptl); | ||
266 | } | ||
264 | else | 267 | else |
265 | break; | 268 | break; |
266 | } while (pte++, addr += PAGE_SIZE, addr != end); | 269 | } while (pte++, addr += PAGE_SIZE, addr != end); |