[PATCH] Device-Mapper 2/9

From: Kevin Corry
Date: Mon Apr 12 2004 - 09:26:57 EST


Check the uptodate flag in sub-bios to see if there was an error.
[Mike Christie]

--- diff/drivers/md/dm.c 2004-04-09 09:40:14.000000000 -0500
+++ source/drivers/md/dm.c 2004-04-09 09:41:53.000000000 -0500
@@ -294,6 +294,9 @@
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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/