From: "Jan Beulich" Subject: Re: [GIT PULL] for-2.6.32/bug-fixes Date: Tue, 17 May 2011 17:24:43 +0100 Message-ID: <4DD2BD6B0200007800041B40@vpn.id2.novell.com> References: <20110516203535.GA871@dumpdata.com> <4DD260700200007800041962@vpn.id2.novell.com> <20110517141629.GC6816@dumpdata.com> <4DD2AAF80200007800041AC9@vpn.id2.novell.com> <20110517155746.GB3657@dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20110517155746.GB3657@dumpdata.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: Jeremy Fitzhardinge , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> On 17.05.11 at 17:57, Konrad Rzeszutek Wilk = wrote: >> > No attaching of data to the barrier. >>=20 >> Sure, this direction we agree about. But your change is enforcing >> it the other way around (if barrier then no data), which wasn't the >> case so far. >=20 > OK, even if the code that actually does the bio submission does > not attach any data to the bio? The end result is the same - no > data with barriers. My problem is that I can't see where attaching data would be skipped. The only thing I see is the BUG_ON() you pointed at earlier, checking that if there is no data, then this must be a barrier request. >> >> Additionally, looking at the check in vbd_translate(), wouldn't you >> >> think there ought to be overflow checking for the addition, too? >> >=20 >> > Sure, could add that in. Albeit it seems incorrect to do it in that >> > function. It checks to see if the sector is correct, and -1 is = definitly >> > wrong. >>=20 >> Hmm, depends on your perspective - I'd say that any sector_number >> is valid when nr_sects is zero. >=20 > I concur. The value that is passed by the frontend is not zero. It is = -1. Oh, you say both sector_number and nr_sects are -1? Looking again... No, that can't be the case, the value starts out at zero in dispatch_rw_block_io(). Jan