diff options
author | Jens Axboe <axboe@kernel.dk> | 2014-01-08 16:14:22 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2014-01-08 16:14:22 -0500 |
commit | 1331107f8a8611f3520046f50c44af9b2102bfd2 (patch) | |
tree | 4037e52bedcd991c89f789a99d8723638aed80e6 | |
parent | 95d4403889acbd98e06d41a255df76452210996a (diff) |
Revert "block: Warn and free bio if bi_end_io is not set"
This reverts commit 95d4403889acbd98e06d41a255df76452210996a.
The patch is broken for on-stack bios, amongst other things.
-rw-r--r-- | fs/bio.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -1770,15 +1770,6 @@ void bio_endio(struct bio *bio, int error) | |||
1770 | } else { | 1770 | } else { |
1771 | if (bio->bi_end_io) | 1771 | if (bio->bi_end_io) |
1772 | bio->bi_end_io(bio, error); | 1772 | bio->bi_end_io(bio, error); |
1773 | else { | ||
1774 | char dev_name[BDEVNAME_SIZE]; | ||
1775 | |||
1776 | WARN(1, "bio_endio: bio for %s without endio\n", | ||
1777 | bio->bi_bdev ? bdevname(bio->bi_bdev, | ||
1778 | dev_name) : "(unknown)"); | ||
1779 | bio_put(bio); | ||
1780 | } | ||
1781 | |||
1782 | bio = NULL; | 1773 | bio = NULL; |
1783 | } | 1774 | } |
1784 | } | 1775 | } |