Skip to contentSkip to conversation

mm/memory.c: print_vma_addr() call up_read(&mm->mmap_sem) directly

PATCH RESEND New Jeff Liu 1 participant 1 message Jun 29, 2012

Subsystems (2)
lore
Share & tools
lore

Jeff Liu

author
#0 lore raw

PATCH RESEND 1/1 mm/memory.c: print_vma_addr() call up_read(&mm->mmap_sem) directly

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

---
 mm/memory.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/memory.c +1 -1
index 2466d12..6e49113 100644
@@ -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
Signature · 7 lines
1.7.9

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