Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27eaa149 authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Alasdair G Kergon
Browse files

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: default avatarMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent fdb9572b
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;