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] A bug in Xenbus driver

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: RE: [Xen-devel] A bug in Xenbus driver
From: "Jun Zhu (Intern)" <Jun.Zhu@xxxxxxxxxx>
Date: Thu, 26 Aug 2010 09:25:30 +0100
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 26 Aug 2010 01:26:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C756CCE.3060200@xxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <433DDF91DFB08148BAD3FDB6FDDA314C9F35F3BB47@xxxxxxxxxxxxxxxxxxxxxxxxx>, <4C756CCE.3060200@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: ActEinljiKU/d69QQ9OsTiSMnpQmtAAbcTkq
Thread-topic: [Xen-devel] A bug in Xenbus driver
Hi, 

Sorry for my description. "Does not report correctly" is not the problem of 
xenbus read. 
I mean that in the xenstore/xs.c code, when using another thread (#ifdef 
USE_PTHREAD) to receive responses from xenbus, if this thread exits 
incorrectly, the listener should be noticed, or the listener will wait for 
response for ever.  


Jun Zhu
Citrix Systems UK

________________________________________
From: Jeremy Fitzhardinge [jeremy@xxxxxxxx]
Sent: Wednesday, August 25, 2010 3:19 PM
To: Jun Zhu (Intern)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] A bug in Xenbus driver

 On 08/25/2010 11:57 AM, Jun Zhu (Intern) wrote:
> This bug makes the read_buffer not be cleared most of the time. If the 
> xenstore client uses PTHREAD to create a thread to receive reply message, the 
> problem will incur. The new thread can not read what it wants to read, since 
> the list is not empty.

This still puzzles me.  The bug you found means that
partially-successful reads will not be reported correctly, but
completely successful and completely unsuccessful reads should be OK.
So if you're seeing a problem as a result, it still indicates there's
something wrong with what you're passing to read().

    J

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

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