From: Jan Beulich Date: Tue, 17 May 2011 10:07:05 +0000 (+0100) Subject: xen/blkback: don't fail empty barrier requests X-Git-Tag: v3.0-rc1~162^2~16^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ab521506c4dbb144f0c04c55e3d8bec42c1b2b9;p=pandora-kernel.git xen/blkback: don't fail empty barrier requests The sector number on empty barrier requests may (will?) be -1, which, given that it's being treated as unsigned 64-bit quantity, will almost always exceed the actual (virtual) disk's size. Inspired by Konrad's "When writting barriers set the sector number to zero...". While at it also add overflow checking to the math in vbd_translate(). Signed-off-by: Jan Beulich Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed