[linux-lvm] Re: [Patch] Latest device-mapper snapshot

Joe Thornber joe at fib011235813.fsnet.co.uk
Fri Oct 25 04:52:01 UTC 2002


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;
 }




More information about the linux-lvm mailing list