From: Carsten Otte Date: Sun, 30 Oct 2011 14:17:00 +0000 (+0100) Subject: [S390] fix possible deadlock in gmap_map_segment X-Git-Tag: v3.2-rc1~109^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9162f238a84ee05b09ea4b0ebd97fb20448c28c;p=pandora-kernel.git [S390] fix possible deadlock in gmap_map_segment Fix possible deadlock reported by lockdep: qemu-system-s39/2963 is trying to acquire lock: (&mm->mmap_sem){++++++}, at: gmap_alloc_table+0x9c/0x120 but task is already holding lock: (&mm->mmap_sem){++++++}, at: gmap_map_segment+0xa6/0x27c Actually gmap_alloc_table is the only called in gmap_map_segment with mmap_sem held, thus it's safe to simply remove the inner lock. Signed-off-by: Carsten Otte Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed