From: Gerald Schaefer Date: Thu, 30 Aug 2012 16:52:54 +0000 (+0200) Subject: s390/mm: fix deadlock in unmap_hugepage_range() X-Git-Tag: v3.6-rc7~22^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5feaea364281a7e9b80b4712e790ab908d61711;p=pandora-kernel.git s390/mm: fix deadlock in unmap_hugepage_range() git commit cd2934a3 moved the flush_tlb_range() within __unmap_hugepage_range() inside the mm->page_table_lock, which triggered a deadlock in s390 tlb flushing code. __tlb_flush_mm_cond() also tries to acquire the mm->page_table_lock, but that is not needed because all callers already have mm->mmap_sem or mm->page_table_lock, so it can be safely removed to fix the deadlock. Signed-off-by: Gerald Schaefer Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed