[DRBD-cvs] svn commit by phil - r2808 - trunk/drbd - The comment says that the bio will be cleaned up by the

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Wed Mar 21 17:29:21 CET 2007


Author: phil
Date: 2007-03-21 17:29:20 +0100 (Wed, 21 Mar 2007)
New Revision: 2808

Modified:
   trunk/drbd/drbd_actlog.c
Log:
The comment says that the bio will be cleaned up by
the caller.
This patch makes this true. ;)



Modified: trunk/drbd/drbd_actlog.c
===================================================================
--- trunk/drbd/drbd_actlog.c	2007-03-20 17:35:45 UTC (rev 2807)
+++ trunk/drbd/drbd_actlog.c	2007-03-21 16:29:20 UTC (rev 2808)
@@ -598,6 +598,8 @@
 	bio->bi_bdev = mdev->bc->md_bdev;
 	bio->bi_sector = on_disk_sector;
 
+	bios[i] = bio;
+
 	if(*page_offset == PAGE_SIZE) {
 		np = alloc_page(__GFP_HIGHMEM);
 		/* no memory leak, bio gets cleaned up by caller */
@@ -625,7 +627,6 @@
 	bio->bi_private = wc;
 	bio->bi_end_io = atodb_endio;
 
-	bios[i] = bio;
 	atomic_inc(&wc->count);
 	/* we already know that we may do this...
 	 * inc_local_if_state(mdev,Attaching);



More information about the drbd-cvs mailing list