xen/dev-evtchn: clean up locking in evtchn
commit0a4666b539a0e896ec4e8396a034a479e3573125
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 12 Feb 2009 21:03:24 +0000 (12 13:03 -0800)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Mon, 30 Mar 2009 16:26:49 +0000 (30 09:26 -0700)
treebfe63e7b6d3da3d8415c53919059bda72d4cf86a
parentc5cfef0f79cacc3aa438fc28f4747f0d10c54d0d
xen/dev-evtchn: clean up locking in evtchn

Define a new per_user_data mutex to serialize bind/unbind operations
to prevent them from racing with each other.  Fix error returns
and don't do a bind while holding a spinlock.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/xen/evtchn.c