Re: [Patch] Latest device-mapper snapshot

Joe Thornber (joe@fib011235813.fsnet.co.uk)
Fri, 25 Oct 2002 10:52:11 +0100


Doh !

# [Device-mapper]
# Forgot a bio_put()
# --------------------------------------------
#
diff -Nru a/drivers/md/dm.c b/drivers/md/dm.c
--- a/drivers/md/dm.c Fri Oct 25 10:47:49 2002
+++ b/drivers/md/dm.c Fri Oct 25 10:47:49 2002
@@ -270,8 +270,10 @@
* finished. If a partial io errors I'm assuming it won't
* be requeued. FIXME: check this.
*/
- if (error || !bio->bi_size)
+ if (error || !bio->bi_size) {
dec_pending(io, error);
+ bio_put(bio);
+ }

return 0;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/