[S390] gmap: always up mmap_sem properly
authorCarsten Otte <cotte@de.ibm.com>
Mon, 26 Sep 2011 14:40:34 +0000 (16:40 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 26 Sep 2011 14:40:50 +0000 (16:40 +0200)
commit05873df981ca1dd32f398e7b4e19864de907e064
treed15e7f32c6081cd81cbbc6cb7a321dad9fb6733f
parentf9783ec862ea8ce0071f34a7fd028229d9fd98b4
[S390] gmap: always up mmap_sem properly

If gmap_unmap_segment figures that the segment was not mapped in the
first place, it need to up mmap_sem on exit.

Cc: <stable@kernel.org>
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/pgtable.c