[dm-devel] [PATCH 6/17] bottom-layer barrier support

Mikulas Patocka mpatocka at redhat.com
Mon Apr 20 07:56:25 UTC 2009


dm-remove-test-for-zero-size.patch

Remove test for !bi_size. Zero-data flush barriers will be passed down
this path.

Signed-off-by: Mikulas Patocka <mpatocka at redhat.com>

---
 drivers/md/dm.c |    5 -----
 1 file changed, 5 deletions(-)

Index: linux-2.6.30-rc1-devel/drivers/md/dm.c
===================================================================
--- linux-2.6.30-rc1-devel.orig/drivers/md/dm.c	2009-04-10 06:33:23.000000000 +0200
+++ linux-2.6.30-rc1-devel/drivers/md/dm.c	2009-04-10 06:33:28.000000000 +0200
@@ -647,11 +647,6 @@ static void __map_bio(struct dm_target *
 	sector_t sector;
 	struct mapped_device *md;
 
-	/*
-	 * Sanity checks.
-	 */
-	BUG_ON(!clone->bi_size);
-
 	clone->bi_end_io = clone_endio;
 	clone->bi_private = tio;
 




More information about the dm-devel mailing list