From: Stefan Berger Subject: [PATCH] [XEN][ACM] fix missing spin_unlock Date: Mon, 26 Feb 2007 14:57:08 -0500 Message-ID: <1172519828.9051.11.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-Fa+lrcDG5ENB2Bv+e9My" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: sailer@us.ibm.com List-Id: xen-devel@lists.xenproject.org --=-Fa+lrcDG5ENB2Bv+e9My Content-Type: text/plain Content-Transfer-Encoding: 7bit Insert a missing spin_unlock statement. Signed-off-by: Stefan Berger Keir, I have a question regarding the event channel data structure. It looks like a stale entry is in the event channel array indicating that a event channel at a given port has a certain remote domain as target. However, that domain does not exist anymore and therefore the code section where I add the spin_unlock() call gets triggered now. Could this be a bug in the domain-cleanup code? I can trigger this problem when running the xm-test suite with ACM compiled into Xen. After 159 domains have been created, which happens to be during the list tests, the stale port entry shows up and remains. The list tests when run after a reboot do not trigger this, though. Stefan --=-Fa+lrcDG5ENB2Bv+e9My Content-Disposition: attachment; filename=acm_missing_spin_unlock.diff Content-Type: text/x-patch; name=acm_missing_spin_unlock.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r 2d3ceb082114 xen/acm/acm_simple_type_enforcement_hooks.c --- a/xen/acm/acm_simple_type_enforcement_hooks.c Mon Feb 26 09:13:50 2007 +0000 +++ b/xen/acm/acm_simple_type_enforcement_hooks.c Mon Feb 26 14:42:53 2007 -0500 @@ -208,6 +208,7 @@ ste_init_state(struct acm_ste_policy_buf rdomid = d->evtchn[port]->u.unbound.remote_domid; if ((rdom = get_domain_by_id(rdomid)) == NULL) { printk("%s: Error finding domain to id %x!\n", __func__, rdomid); + spin_unlock(&d->evtchn_lock); goto out; } /* rdom now has remote domain */ --=-Fa+lrcDG5ENB2Bv+e9My Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-Fa+lrcDG5ENB2Bv+e9My--