Commit 8ceccffc authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] dm: Check the uptodate flag in sub-bios to see if there was an error.

From: Kevin Corry <kevcorry@us.ibm.com>

Check the uptodate flag in sub-bios to see if there was an error.  [Mike
Christie]
parent abfd0ec5
......@@ -294,6 +294,9 @@ static int clone_endio(struct bio *bio, unsigned int done, int error)
if (bio->bi_size)
return 1;
if (!bio_flagged(bio, BIO_UPTODATE) && !error)
error = -EIO;
if (endio) {
r = endio(tio->ti, bio, error, &tio->info);
if (r < 0)
......
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