Messages in this thread Patch in this message | | | From | Yang Shi <> | Subject | [RFC PATCH 6/8] fs: proc/vmcore: pass atomic parameter to do_munmap() | Date | Wed, 21 Mar 2018 05:31:24 +0800 |
| |
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@linux.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
| |