From: Mikulas Patocka Date: Mon, 22 Jun 2009 09:12:20 +0000 (+0100) Subject: dm: remove check that prevents mapping empty bios X-Git-Tag: upstream/snapshot3+hdmi~18286^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27eaa14975d8b53f0bad422e53cdf8e5f6dd44ec;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git dm: remove check that prevents mapping empty bios Remove the check that the size of the cloned bio is not zero because a subsequent patch needs to send zero-sized barriers down this path. Signed-off-by: Mikulas Patocka Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 8498dc4..7d9ca70 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -637,11 +637,6 @@ static void __map_bio(struct dm_target *ti, struct bio *clone, sector_t sector; struct mapped_device *md; - /* - * Sanity checks. - */ - BUG_ON(!clone->bi_size); - clone->bi_end_io = clone_endio; clone->bi_private = tio;