]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
evtchn: remove the locking when unmasking an event channel
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 18 Jun 2015 12:54:25 +0000 (14:54 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 18 Jun 2015 12:54:25 +0000 (14:54 +0200)
The event channel lock is no longer required to check if the port is
valid.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
xen/common/event_channel.c

index fd48646a262e9f2605ea4d64c05fadeb773c1546..2208de0163d4df78c05b94f75fbb6e06c01cb537 100644 (file)
@@ -927,8 +927,6 @@ int evtchn_unmask(unsigned int port)
     struct domain *d = current->domain;
     struct evtchn *evtchn;
 
-    ASSERT(spin_is_locked(&d->event_lock));
-
     if ( unlikely(!port_is_valid(d, port)) )
         return -EINVAL;
 
@@ -1095,9 +1093,7 @@ long do_event_channel_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg)
         struct evtchn_unmask unmask;
         if ( copy_from_guest(&unmask, arg, 1) != 0 )
             return -EFAULT;
-        spin_lock(&current->domain->event_lock);
         rc = evtchn_unmask(unmask.port);
-        spin_unlock(&current->domain->event_lock);
         break;
     }