s390/mm: use correct unlock function in gmap_ipte_notify
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 30 Oct 2014 09:55:37 +0000 (10:55 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 3 Nov 2014 12:30:29 +0000 (13:30 +0100)
The page table lock is acquired with a call to get_locked_pte,
replace the plain spin_unlock with the correct unlock function
pte_unmap_unlock.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/pgtable.c

index 9c8a6dd8a49c06b1199f2f1b7ce27db68188f766..71c7eff2c89f0a6489baf3edfd28bdc0e1c228ef 100644 (file)
@@ -762,7 +762,7 @@ int gmap_ipte_notify(struct gmap *gmap, unsigned long gaddr, unsigned long len)
                        gaddr += PAGE_SIZE;
                        len -= PAGE_SIZE;
                }
-               spin_unlock(ptl);
+               pte_unmap_unlock(ptep, ptl);
        }
        up_read(&gmap->mm->mmap_sem);
        return rc;