[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Replace get_domain_by_id() with find_domain_rcu_lock() [1/2]


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
  • Date: Thu, 1 Mar 2007 01:39:48 -0000
  • Cc: Jose Renato Santos <jsantos@xxxxxxxxxx>
  • Delivery-date: Wed, 28 Feb 2007 17:39:06 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acdbon9cS0Ec0suDSA2q9hJJX+ZWRg==
  • Thread-topic: [PATCH] Replace get_domain_by_id() with find_domain_rcu_lock() [1/2]

  These patches replaces invocations to get_domain_by_id()/put_domain()
with the more efficient pair find_domain_rcu_loc()/domain_rcu_unlock(). 
  Most of the current invocations of get_domain_by_id() have local scope
which are safe to be replaced with find_domain_rcu_lock(). There are
only a few places where the get_domain_by_id() was kept due to the
domain reference being kept beyond the current scope.

I decomposed the changes in two patches:
[1/2]: find_domain_rcu_lock_common.patch: changes in arch independent
code
[2/2]: find_domain_rcu_lock_x86.patch: changes in x86 code
 
I did not replace get_domain_by_id() for IA64 and PPC archs yet.
I will send a separate patch for these architectures after I have the
chance to generate the patches for them.

Thanks

Signed-off-by: Jose Renato Santos <jsantos@xxxxxxxxxx>





Attachment: find_domain_rcu_lock_common.patch
Description: find_domain_rcu_lock_common.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.