From: Stefan Berger Subject: [PATCH] [XEN] [ACM] Change the domain_rcu_lock calls Date: Fri, 02 Mar 2007 10:09:46 -0500 Message-ID: <1172848186.12006.3.camel@gsal-3.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-BZcNg8zz+Rf/WfdCG3YA" 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@lists.xensource.com Cc: keir@xensource.com List-Id: xen-devel@lists.xenproject.org --=-BZcNg8zz+Rf/WfdCG3YA Content-Type: text/plain Content-Transfer-Encoding: 7bit This fixes recent changes from put_domain() to domain_rcu_lock() (?) to the correct rcu_unlock_domain(). Signed-off-by: Stefan Berger --=-BZcNg8zz+Rf/WfdCG3YA Content-Disposition: attachment; filename=acm_rcu_unlock_fix.diff Content-Type: text/x-patch; name=acm_rcu_unlock_fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/xen/include/acm/acm_hooks.h =================================================================== --- root.orig/xen-unstable.hg/xen/include/acm/acm_hooks.h +++ root/xen-unstable.hg/xen/include/acm/acm_hooks.h @@ -247,12 +247,12 @@ static inline int acm_pre_domctl(struct if (*ssid == NULL) { printk("%s: Warning. Destroying domain without ssid pointer.\n", __func__); - domain_rcu_lock(d); + rcu_unlock_domain(d); return -EACCES; } d->ssid = NULL; /* make sure it's not used any more */ /* no policy-specific hook */ - domain_rcu_lock(d); + rcu_unlock_domain(d); ret = 0; } break; --=-BZcNg8zz+Rf/WfdCG3YA 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 --=-BZcNg8zz+Rf/WfdCG3YA--