Skip to contentSkip to conversation

Change the domain_rcu_lock calls

PATCH In review Stefan Berger 2 participants 2 messages Mar 2, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Change the domain_rcu_lock calls

This fixes recent changes from put_domain() to domain_rcu_lock() (?) to the correct rcu_unlock_domain().

xen-unstable.hg/xen/include/acm/acm_hooks.h +2 -2
Index: 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;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Sorry for not having catched this before submiting. I did not notice
compilation of ACM code is conditional and did not enabled it to test the patch. Thanks for the fix

Renato

Quoted 17 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stefan Berger
Sent: Friday, March 02, 2007 7:10 AM
To: [email protected]
Cc: [email protected]
Subject: [Xen-devel] [PATCH] [XEN] [ACM] Change the domain_rcu_lock calls

This fixes recent changes from put_domain() to domain_rcu_lock() (?) to the correct rcu_unlock_domain().