提交 27eaa149 编写于 作者: M Mikulas Patocka 提交者: Alasdair G Kergon

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: NMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
上级 fdb9572b
...@@ -637,11 +637,6 @@ static void __map_bio(struct dm_target *ti, struct bio *clone, ...@@ -637,11 +637,6 @@ static void __map_bio(struct dm_target *ti, struct bio *clone,
sector_t sector; sector_t sector;
struct mapped_device *md; struct mapped_device *md;
/*
* Sanity checks.
*/
BUG_ON(!clone->bi_size);
clone->bi_end_io = clone_endio; clone->bi_end_io = clone_endio;
clone->bi_private = tio; clone->bi_private = tio;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册