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

Commit 1331107f authored by Jens Axboe's avatar Jens Axboe
Browse files

Revert "block: Warn and free bio if bi_end_io is not set"

This reverts commit 95d44038.

The patch is broken for on-stack bios, amongst other things.
parent 95d44038
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -1770,15 +1770,6 @@ void bio_endio(struct bio *bio, int error)
		} else {
			if (bio->bi_end_io)
				bio->bi_end_io(bio, error);
			else {
				char dev_name[BDEVNAME_SIZE];

				WARN(1, "bio_endio: bio for %s without endio\n",
					bio->bi_bdev ? bdevname(bio->bi_bdev,
					dev_name) : "(unknown)");
				bio_put(bio);
			}

			bio = NULL;
		}
	}