diff options
author | Naoya Horiguchi <[email protected]> | 2013-06-12 14:05:04 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2013-06-12 16:29:46 -0700 |
commit | 30dad30922ccc733cfdbfe232090cf674dc374dc (patch) | |
tree | 7663089f93435ea0c298eb69058ca834c109f530 /lib/memory-notifier-error-inject.c | |
parent | 27749f2ff0717e115680922000839ad6a576eddf (diff) |
mm: migration: add migrate_entry_wait_huge()
When we have a page fault for the address which is backed by a hugepage
under migration, the kernel can't wait correctly and do busy looping on
hugepage fault until the migration finishes. As a result, users who try
to kick hugepage migration (via soft offlining, for example) occasionally
experience long delay or soft lockup.
This is because pte_offset_map_lock() can't get a correct migration entry
or a correct page table lock for hugepage. This patch introduces
migration_entry_wait_huge() to solve this.
Signed-off-by: Naoya Horiguchi <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Reviewed-by: Wanpeng Li <[email protected]>
Reviewed-by: Michal Hocko <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: <[email protected]> [2.6.35+]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions