From: Ian Jackson Subject: Re: [PATCH] cxenstored: correct calculation of data/space in the ring Date: Mon, 16 Nov 2015 18:01:29 +0000 Message-ID: <22090.6649.488665.395378@mariner.uk.xensource.com> References: <1447678398-31431-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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZyO5u-0001XX-V0 for xen-devel@lists.xenproject.org; Mon, 16 Nov 2015 18:01:35 +0000 In-Reply-To: <1447678398-31431-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 Cc: Xen-devel , Ian Campbell , Andrew Cooper List-Id: xen-devel@lists.xenproject.org Wei Liu writes ("[PATCH] cxenstored: correct calculation of data/space in the ring"): > The cxenstored implementation can't handle cross ring boundary read and > write. It gets aways with buggy behaviour because upper layer won't > sleep when short-write or short-read occurs. I don't understand why you think this is a bug. > It would be nice, however, to make the low level routine correct > regardless of what upper layer is doing. This should at least avoid > latent bug should upper layer logic changes. I don't think this is as hard a layer boundary as you suggest. Ian.