linux/drivers/block/xen-blkback
Jan Beulich 8ab521506c 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 <jbeulich@novell.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2011-05-18 11:28:16 -04:00
..
Makefile xen/blkback: Squash vbd.c,interface.c in blkback.c and xenbus.c respectivly. 2011-04-20 11:57:59 -04:00
blkback.c xen/blkback: don't fail empty barrier requests 2011-05-18 11:28:16 -04:00
common.h xen/blkback: Add the prefix XEN in the common.h. 2011-05-12 17:55:53 -04:00
xenbus.c xen/blkback: Align the tabs on the structure. 2011-05-12 18:02:28 -04:00