+++ /dev/null
-From 20cbc972617069c1ed434f62151e4de57d26ea46 Mon Sep 17 00:00:00 2001
-From: Andrew Morton <akpm@linux-foundation.org>
-Date: Sat, 5 Jul 2008 12:29:05 -0700
-Subject: Fix clear_refs_write() use of struct mm_walk
-
-From: Andrew Morton <akpm@linux-foundation.org>
-
-commit 20cbc972617069c1ed434f62151e4de57d26ea46 upstream
-
-Don't use a static entry, so as to prevent races during concurrent use
-of this function.
-
-Reported-by: Alexey Dobriyan <adobriyan@gmail.com>
-Cc: Matt Mackall <mpm@selenic.com>
-Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-
----
- fs/proc/task_mmu.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
---- a/fs/proc/task_mmu.c
-+++ b/fs/proc/task_mmu.c
-@@ -480,8 +480,6 @@ static int clear_refs_pte_range(pmd_t *p
- return 0;
- }
-
--static struct mm_walk clear_refs_walk = { .pmd_entry = clear_refs_pte_range };
--
- static ssize_t clear_refs_write(struct file *file, const char __user *buf,
- size_t count, loff_t *ppos)
- {
-@@ -504,6 +502,9 @@ static ssize_t clear_refs_write(struct f
- return -ESRCH;
- mm = get_task_mm(task);
- if (mm) {
-+ struct mm_walk clear_refs_walk = {
-+ .pmd_entry = clear_refs_pte_range
-+ };
- down_read(&mm->mmap_sem);
- for (vma = mm->mmap; vma; vma = vma->vm_next)
- if (!is_vm_hugetlb_page(vma))
md-don-t-acknowlege-that-stripe-expand-is-complete-until-it-really-is.patch
md-ensure-interrupted-recovery-completed-properly.patch
block-properly-notify-block-layer-of-sync-writes.patch
-fix-clear_refs_write-use-of-struct-mm_walk.patch
xen-mask-unwanted-pte-bits-in-__supported_pte_mask.patch