Revert "fs/proc/task_mmu.c: hold read lock on mm->mmap_sem for get_user_pages"
Seema Khowala [Mon, 7 Jul 2014 21:36:59 +0000 (14:36 -0700)]
This reverts commit 41b5e73ff878e7c1629f0ad8707cbc4c5c128f7b.

Bug 200016834

Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Change-Id: Idec735d6804efd61d70941165f4bee72a10b60e7
Reviewed-on: http://git-master/r/435239
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
Tested-by: Hridya Valsaraju <hvalsaraju@nvidia.com>
GVS: Gerrit_Virtual_Submit

fs/proc/task_mmu.c

index a9e45c7..db17f98 100644 (file)
@@ -158,10 +158,8 @@ static void seq_print_vma_name(struct seq_file *m, struct vm_area_struct *vma)
                long pages_pinned;
                struct page *page;
 
-               down_read(&current->mm->mmap_sem);
                pages_pinned = get_user_pages(current, mm, page_start_vaddr,
                                1, 0, 0, &page, NULL);
-               up_read(&current->mm->mmap_sem);
                if (pages_pinned < 1) {
                        seq_puts(m, "<fault>]");
                        return;