summaryrefslogtreecommitdiffstats
path: root/fs/bio.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2014-01-08 14:14:22 -0700
committerJens Axboe <axboe@kernel.dk>2014-01-08 14:14:22 -0700
commit1331107f8a8611f3520046f50c44af9b2102bfd2 (patch)
tree4037e52bedcd991c89f789a99d8723638aed80e6 /fs/bio.c
parent95d4403889acbd98e06d41a255df76452210996a (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.
Diffstat (limited to 'fs/bio.c')
-rw-r--r--fs/bio.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/bio.c b/fs/bio.c
index 9156bd1f151..75c49a38223 100644
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -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;
}
}