summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/bio.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/bio.c b/fs/bio.c
index 75c49a382239..9156bd1f151c 100644
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -1770,6 +1770,15 @@ 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;
}
}