WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [patch] new version of find_domain_by_id() without refer

To: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [patch] new version of find_domain_by_id() without reference count [0/6]
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Sat, 09 Dec 2006 09:29:18 +0000
Cc: Yoshio Turner <yoshiotu@xxxxxxxxxx>, G John Janakiraman <john@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 09 Dec 2006 01:29:39 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <08CA2245AFCF444DB3AC415E47CC40AF508D98@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AccbR+BB71+g4tAvS++Fs5r59z+B5gALJ+ts
Thread-topic: [Xen-devel] [patch] new version of find_domain_by_id() without reference count [0/6]
User-agent: Microsoft-Entourage/11.2.5.060620
On 9/12/06 4:09 am, "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
wrote:

> I only did minor tests on x86-32. Xen and dom0 boots fine and I can
> create and destroy domains. But, no more exaustive tests were done. I
> carefully checked if I removed all put_domain() associated with each
> modified invocation of find_domain_by_id but mistakes are always
> possible. It would be good to put this to some more exhaustive tests
> before pushing it to the main tree. Waiting for post 3.0.4 release is
> strongly suggested.

It can't go in until RCU is merged and that won't happen for 3.0.4 anyway.

When you post these again after 3.0.4 (which I'm sure you'll have to do) I'd
actually like the names as follows:
 1. Rename find_domain_by_id() to get_domain_by_id().
 2. Call the new function find_domain_by_id().

This has the obvious disadvantage of an old/new name clash so we effectively
change semantics of an existing function. *But* the new names are better
imo: get_domain_by_id() more obviously pairs with put_domain(), and
find_domain_by_id_noref() is ugly and this rename allows us to drop the
_noref suffix unambiguously.

I'd be interested to know what this does for find/get_domain_by_id()
percentages in your network profiles.

 -- Keir


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

<Prev in Thread] Current Thread [Next in Thread>