xen/gntdev: convert priv->lock to a mutex
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 9 Jan 2015 18:06:12 +0000 (18:06 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Oct 2015 02:46:01 +0000 (03:46 +0100)
commit 1401c00e59ea021c575f74612fe2dbba36d6a4ee upstream.

Unmapping may require sleeping and we unmap while holding priv->lock, so
convert it to a mutex.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
[bwh: Backported to 3.2:
 - Adjust context
 - Drop changes to functions we don't have]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/xen/gntdev.c

Simple merge