projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb4489f
)
sched: numa: skip inaccessible VMAs
author
Mel Gorman
<
[email protected]
>
Thu, 19 Dec 2013 01:08:40 +0000
(17:08 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 19 Dec 2013 03:04:51 +0000
(19:04 -0800)
Inaccessible VMA should not be trapping NUMA hint faults. Skip them.
Signed-off-by: Mel Gorman <
[email protected]
>
Reviewed-by: Rik van Riel <
[email protected]
>
Cc: Alex Thorlton <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/sched/fair.c
patch
|
blob
|
history
diff --git
a/kernel/sched/fair.c
b/kernel/sched/fair.c
index 9030da7bcb15f62f5d4873857c81e920e61fe052..c7395d97e4cb7c33f26925569adff8f7e3007d4e 100644
(file)
--- a/
kernel/sched/fair.c
+++ b/
kernel/sched/fair.c
@@
-1738,6
+1738,13
@@
void task_numa_work(struct callback_head *work)
(vma->vm_file && (vma->vm_flags & (VM_READ|VM_WRITE)) == (VM_READ)))
continue;
+ /*
+ * Skip inaccessible VMAs to avoid any confusion between
+ * PROT_NONE and NUMA hinting ptes
+ */
+ if (!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE)))
+ continue;
+
do {
start = max(start, vma->vm_start);
end = ALIGN(start + (pages << PAGE_SHIFT), HPAGE_SIZE);