xen/evtchn: remove spurious barrier
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Sat, 19 Sep 2009 00:13:41 +0000 (17:13 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Sat, 19 Sep 2009 00:13:41 +0000 (17:13 -0700)
evtchn_unbind_from_user() is called under a lock, so there's no need to
worry about the ordering of unbind_from_irqhandler vs clearing the port
per-user data.

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

index 72dc7f20c5ed456630992a8bd9c73a8b9af865f1..f79ac5ca3793f12a513cac0357fb4a417971e2cb 100644 (file)
@@ -279,9 +279,6 @@ static void evtchn_unbind_from_user(struct per_user_data *u, int port)
 
        unbind_from_irqhandler(irq, (void *)(unsigned long)port);
 
-       /* make sure we unbind the irq handler before clearing the port */
-       barrier();
-
        set_port_user(port, NULL);
 }