diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-21 22:05:45 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-21 22:05:45 -0500 |
| commit | df32e43a54d04eda35d2859beaf90e3864d53288 (patch) | |
| tree | 7a61cf658b2949bd426285eb9902be7758ced1ba /kernel/sched | |
| parent | fbd918a2026d0464ce9c23f57b7de4bcfccdc2e6 (diff) | |
| parent | 78d5506e82b21a1a1de68c24182db2c2fe521422 (diff) | |
Merge branch 'akpm' (incoming from Andrew)
Merge first patch-bomb from Andrew Morton:
- a couple of misc things
- inotify/fsnotify work from Jan
- ocfs2 updates (partial)
- about half of MM
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (117 commits)
mm/migrate: remove unused function, fail_migrate_page()
mm/migrate: remove putback_lru_pages, fix comment on putback_movable_pages
mm/migrate: correct failure handling if !hugepage_migration_support()
mm/migrate: add comment about permanent failure path
mm, page_alloc: warn for non-blockable __GFP_NOFAIL allocation failure
mm: compaction: reset scanner positions immediately when they meet
mm: compaction: do not mark unmovable pageblocks as skipped in async compaction
mm: compaction: detect when scanners meet in isolate_freepages
mm: compaction: reset cached scanner pfn's before reading them
mm: compaction: encapsulate defer reset logic
mm: compaction: trace compaction begin and end
memcg, oom: lock mem_cgroup_print_oom_info
sched: add tracepoints related to NUMA task migration
mm: numa: do not automatically migrate KSM pages
mm: numa: trace tasks that fail migration due to rate limiting
mm: numa: limit scope of lock for NUMA migrate rate limiting
mm: numa: make NUMA-migrate related functions static
lib/show_mem.c: show num_poisoned_pages when oom
mm/hwpoison: add '#' to hwpoison_inject
mm/memblock: use WARN_ONCE when MAX_NUMNODES passed as input parameter
...
Diffstat (limited to 'kernel/sched')
| -rw-r--r-- | kernel/sched/core.c | 2 | ||||
| -rw-r--r-- | kernel/sched/fair.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 3897e09e86a2..4d6964e49711 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
| @@ -1108,6 +1108,7 @@ int migrate_swap(struct task_struct *cur, struct task_struct *p) | |||
| 1108 | if (!cpumask_test_cpu(arg.src_cpu, tsk_cpus_allowed(arg.dst_task))) | 1108 | if (!cpumask_test_cpu(arg.src_cpu, tsk_cpus_allowed(arg.dst_task))) |
| 1109 | goto out; | 1109 | goto out; |
| 1110 | 1110 | ||
| 1111 | trace_sched_swap_numa(cur, arg.src_cpu, p, arg.dst_cpu); | ||
| 1111 | ret = stop_two_cpus(arg.dst_cpu, arg.src_cpu, migrate_swap_stop, &arg); | 1112 | ret = stop_two_cpus(arg.dst_cpu, arg.src_cpu, migrate_swap_stop, &arg); |
| 1112 | 1113 | ||
| 1113 | out: | 1114 | out: |
| @@ -4603,6 +4604,7 @@ int migrate_task_to(struct task_struct *p, int target_cpu) | |||
| 4603 | 4604 | ||
| 4604 | /* TODO: This is not properly updating schedstats */ | 4605 | /* TODO: This is not properly updating schedstats */ |
| 4605 | 4606 | ||
| 4607 | trace_sched_move_numa(p, curr_cpu, target_cpu); | ||
| 4606 | return stop_one_cpu(curr_cpu, migration_cpu_stop, &arg); | 4608 | return stop_one_cpu(curr_cpu, migration_cpu_stop, &arg); |
| 4607 | } | 4609 | } |
| 4608 | 4610 | ||
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index b24b6cfde9aa..867b0a4b0893 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
| @@ -1250,11 +1250,15 @@ static int task_numa_migrate(struct task_struct *p) | |||
| 1250 | p->numa_scan_period = task_scan_min(p); | 1250 | p->numa_scan_period = task_scan_min(p); |
| 1251 | 1251 | ||
| 1252 | if (env.best_task == NULL) { | 1252 | if (env.best_task == NULL) { |
| 1253 | int ret = migrate_task_to(p, env.best_cpu); | 1253 | ret = migrate_task_to(p, env.best_cpu); |
| 1254 | if (ret != 0) | ||
| 1255 | trace_sched_stick_numa(p, env.src_cpu, env.best_cpu); | ||
| 1254 | return ret; | 1256 | return ret; |
| 1255 | } | 1257 | } |
| 1256 | 1258 | ||
| 1257 | ret = migrate_swap(p, env.best_task); | 1259 | ret = migrate_swap(p, env.best_task); |
| 1260 | if (ret != 0) | ||
| 1261 | trace_sched_stick_numa(p, env.src_cpu, task_cpu(env.best_task)); | ||
| 1258 | put_task_struct(env.best_task); | 1262 | put_task_struct(env.best_task); |
| 1259 | return ret; | 1263 | return ret; |
| 1260 | } | 1264 | } |
