[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1521581486-99134-7-git-send-email-yang.shi@linux.alibaba.com>
Date: Wed, 21 Mar 2018 05:31:24 +0800
From: Yang Shi <yang.shi@...ux.alibaba.com>
To: akpm@...ux-foundation.org
Cc: yang.shi@...ux.alibaba.com, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: [RFC PATCH 6/8] fs: proc/vmcore: pass atomic parameter to do_munmap()
Just pass "true" here since vmcore map is not a hot path there is not
too much gain to release mmap_sem in the middle.
Signed-off-by: Yang Shi <yang.shi@...ux.alibaba.com>
---
fs/proc/vmcore.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c
index a45f0af..02683eb 100644
--- a/fs/proc/vmcore.c
+++ b/fs/proc/vmcore.c
@@ -388,7 +388,7 @@ static int remap_oldmem_pfn_checked(struct vm_area_struct *vma,
}
return 0;
fail:
- do_munmap(vma->vm_mm, from, len, NULL);
+ do_munmap(vma->vm_mm, from, len, NULL, true);
return -EAGAIN;
}
@@ -481,7 +481,7 @@ static int mmap_vmcore(struct file *file, struct vm_area_struct *vma)
return 0;
fail:
- do_munmap(vma->vm_mm, vma->vm_start, len, NULL);
+ do_munmap(vma->vm_mm, vma->vm_start, len, NULL, true);
return -EAGAIN;
}
#else
--
1.8.3.1
Powered by blists - more mailing lists