mm, thp: print useful information when mmap_sem is unlocked in zap_pmd_range
authorDavid Rientjes <rientjes@google.com>
Wed, 20 Jun 2012 19:53:00 +0000 (12:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 20 Jun 2012 21:39:35 +0000 (14:39 -0700)
commite0897d75f0b22e8c3a7287a48548c5686ef73447
tree7c6e96b8f9e95ba81e322833363398df119102e0
parent436814e61f5c526ed123853a9bf63fb2ff4ff94b
mm, thp: print useful information when mmap_sem is unlocked in zap_pmd_range

Andrea asked for addr, end, vma->vm_start, and vma->vm_end to be emitted
when !rwsem_is_locked(&tlb->mm->mmap_sem).  Otherwise, debugging the
underlying issue is more difficult.

Suggested-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c