xen/gntalloc: Change gref_lock to a mutex
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 27 Oct 2011 21:58:48 +0000 (17:58 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 21 Nov 2011 22:14:47 +0000 (17:14 -0500)
commit8ca19a8937ad91703cfefccf13bd8017b39510cd
treec522460f48b7e7412048750b3874010d18fc36cc
parent80df46494846e857399618c54df30ce294dc1edd
xen/gntalloc: Change gref_lock to a mutex

The event channel release function cannot be called under a spinlock
because it can attempt to acquire a mutex due to the event channel
reference acquired when setting up unmap notifications.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/gntalloc.c