Commit 76417366 authored by Linus Torvalds's avatar Linus Torvalds

Terminate a failed IO properly

parent 46796862
...@@ -1795,7 +1795,7 @@ void generic_make_request(struct bio *bio) ...@@ -1795,7 +1795,7 @@ void generic_make_request(struct bio *bio)
bdevname(bio->bi_bdev), bdevname(bio->bi_bdev),
(long long) bio->bi_sector); (long long) bio->bi_sector);
end_io: end_io:
bio_endio(bio, 0, -EIO); bio_endio(bio, bio->bi_size, -EIO);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment