From: Keir Fraser Subject: Re: barriers before {req/rsp}_cons = cons? Date: Mon, 21 Jul 2008 09:28:38 +0100 Message-ID: References: <20080718193304.GI4576@implementation> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080718193304.GI4576@implementation> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Samuel Thibault Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 18/7/08 20:33, "Samuel Thibault" wrote: >> Could you describe the race you believe is made possible by the absence of >> the barrier? > > It is very unlikely, but the write into req_cons could happen before > actually doing the memcpy, and so another processor could try to reuse > the same request slot. req_cons is not shared with the frontend driver, and most accesses within the backend are serialised within the transmit tasklet. -- Keir