From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [PATCH] oxenstored: fix short-write issue Date: Wed, 28 Oct 2015 14:04:43 +0000 Message-ID: <5630D5FB.6030808@citrix.com> References: <1445965809-5144-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZrRLN-0002AF-EE for xen-devel@lists.xenproject.org; Wed, 28 Oct 2015 14:04:49 +0000 In-Reply-To: <1445965809-5144-1-git-send-email-wei.liu2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu , Xen-devel Cc: Samuel Thibault , Ian Jackson , Ian Campbell , David Scott List-Id: xen-devel@lists.xenproject.org On 27/10/15 17:10, Wei Liu wrote: > When oxenstored wrote to the ring, it wrote a chunk of contiguous data. > Originally when it tried to write across ring boundary, it returned a > short-write when there is still room. That led to stalling mini-os's > xenstore thread at times. > > Fix this by calling write function for a second time when the first > write completes partially. What happens if the 1st write is short because there is not enough space, and the 2nd write is short because of the ring wraparound? You will still stall. David