projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdb9572
)
dm: remove check that prevents mapping empty bios
author
Mikulas Patocka
<mpatocka@redhat.com>
Mon, 22 Jun 2009 09:12:20 +0000
(10:12 +0100)
committer
Alasdair G Kergon
<agk@redhat.com>
Mon, 22 Jun 2009 09:12:20 +0000
(10:12 +0100)
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>
drivers/md/dm.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm.c
b/drivers/md/dm.c
index 8498dc4ce1f0aff5c7208e35fbe9a1c0fd5d4862..7d9ca70943376e8330b958d7eb2b338abf91b2e9 100644
(file)
--- 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;