All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mike D. Day" <ncmike@us.ibm.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] add count-only option to	DOM0_GETDOMAININFOLIST hypercall
Date: Thu, 23 Mar 2006 05:21:50 -0500	[thread overview]
Message-ID: <442276BE.4040303@us.ibm.com> (raw)
In-Reply-To: <4421F7B5.9090403@us.ibm.com>

Anthony Liguori wrote:
> There's a race condition here.  There's no way of knowing that domains 
> haven't been destroyed (or created) in between these calls.
> 
> Unfortunately, the only way to avoid this is grab them one at a time.

The race condition is harmless and the patch is an improvement over the 
current situation where you have to guess the number of domains (and 
hence the size of the buffer you allocate).

Most of the time the caller will be looking for a snapshot of domain 
information, not an up-to-the-instant comprehensive report.

And the pre-existing method of allocating a huge buffer and calling once 
still works.

Mike

      reply	other threads:[~2006-03-23 10:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-23  0:48 [PATCH] add count-only option to DOM0_GETDOMAININFOLIST hypercall Mike D. Day
2006-03-23  1:19 ` Anthony Liguori
2006-03-23 10:21   ` Mike D. Day [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=442276BE.4040303@us.ibm.com \
    --to=ncmike@us.ibm.com \
    --cc=aliguori@us.ibm.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.