aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2009-06-22 10:12:20 +0100
committerAlasdair G Kergon <agk@redhat.com>2009-06-22 10:12:20 +0100
commit27eaa14975d8b53f0bad422e53cdf8e5f6dd44ec (patch)
tree647587ef410cfe862af501922704871f99ead273 /drivers/md
parentfdb9572b73abd008b80931c3b1f157dac3888bb9 (diff)
downloadkernel_samsung_crespo-27eaa14975d8b53f0bad422e53cdf8e5f6dd44ec.zip
kernel_samsung_crespo-27eaa14975d8b53f0bad422e53cdf8e5f6dd44ec.tar.gz
kernel_samsung_crespo-27eaa14975d8b53f0bad422e53cdf8e5f6dd44ec.tar.bz2
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 <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm.c5
1 files changed, 0 insertions, 5 deletions
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;