Skip to content

Commit

Permalink
dm: remove check that prevents mapping empty bios
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed Jun 22, 2009
1 parent fdb9572 commit 27eaa14
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 27eaa14

Please sign in to comment.