From: David Vrabel <david.vrabel@citrix.com>
To: Andrew Reimers <andrew.reimers@orionvm.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Possible bug in xenbus __xenbus_switch_state
Date: Thu, 4 Dec 2014 10:23:14 +0000 [thread overview]
Message-ID: <54803612.4050508@citrix.com> (raw)
In-Reply-To: <4841C18C109F9B4E86BBDE59113F98D7A8F52D@Exchange1.orionvm.com>
On 04/12/14 09:40, Andrew Reimers wrote:
> HI,
>
> Looking at the function __xenbus_switch_state in file source/drivers/xen/xenbus/xenbus_client.c,
>
> The comment says:
>
> "We check whether the state is currently set to the given value, and
> if not, then the state is set."
>
> The code loads the old state value, but never does anything with it.
It does:
if (state == dev->state)
return 0;
The read of the state key is to check it still exists.
"Furthermore, if the node has gone, we don't write
to it, as the device will be tearing down, and we don't want to
resurrect that directory."
David
prev parent reply other threads:[~2014-12-04 10:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-04 9:40 Possible bug in xenbus __xenbus_switch_state Andrew Reimers
2014-12-04 10:23 ` David Vrabel [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=54803612.4050508@citrix.com \
--to=david.vrabel@citrix.com \
--cc=andrew.reimers@orionvm.com \
--cc=xen-devel@lists.xen.org \
/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.