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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2015 10:07:33 +0000 (12:07 +0200)
commitf8cb6399b16470397e7870e272ee7f3b03ed76ef
treea251d102abbe3cf8a7958e3c38530c1f924e48e7
parentd3e972d5e77997cf0944d2c91162a9e893264c92
xen/gntdev: convert priv->lock to a mutex

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>
Cc: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/xen/gntdev.c