linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND] mm/memory.c: print_vma_addr() call up_read(&mm->mmap_sem) directly
@ 2012-06-29 11:06 Jeff Liu
  0 siblings, 0 replies; only message in thread
From: Jeff Liu @ 2012-06-29 11:06 UTC (permalink / raw)
  To: linux-mm; +Cc: akpm

Call up_read(&mm->mmap_sem) directly since we have already got mm
via current->mm at the beginning of print_vma_addr().

Thanks,
-Jeff


Signed-off-by: Jie Liu <jeff.liu@oracle.com>

---
 mm/memory.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/memory.c b/mm/memory.c
index 2466d12..6e49113 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3929,7 +3929,7 @@ void print_vma_addr(char *prefix, unsigned long ip)
 			free_page((unsigned long)buf);
 		}
 	}
-	up_read(&current->mm->mmap_sem);
+	up_read(&mm->mmap_sem);
 }

 #ifdef CONFIG_PROVE_LOCKING
-- 
1.7.9

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-29 11:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-29 11:06 [PATCH RESEND] mm/memory.c: print_vma_addr() call up_read(&mm->mmap_sem) directly Jeff Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).