From: Milan Broz <[email-masked]>

Use md struct in bi_private in cloned bios instead of bioset struct.

Signed-off-by: Milan Broz <[email-masked]>
---
 drivers/md/dm.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

[AGK This patch is not necessary.]

Index: current-quilt/drivers/md/dm.c
===================================================================
--- current-quilt.orig/drivers/md/dm.c	2007-07-25 21:03:31.000000000 +0100
+++ current-quilt/drivers/md/dm.c	2007-07-25 21:04:50.000000000 +0100
@@ -532,7 +532,7 @@ static int clone_endio(struct bio *bio, 
 	/*
 	 * Store md for cleanup instead of tio which is about to get freed.
 	 */
-	bio->bi_private = md->bs;
+	bio->bi_private = md;
 
 	bio_put(bio);
 	free_tio(md, tio);
@@ -597,7 +597,7 @@ static void __map_bio(struct dm_target *
 		/*
 		 * Store bio_set for cleanup.
 		 */
-		clone->bi_private = md->bs;
+		clone->bi_private = md;
 		bio_put(clone);
 		free_tio(md, tio);
 	} else if (r) {
@@ -618,9 +618,9 @@ struct clone_info {
 
 static void dm_bio_destructor(struct bio *bio)
 {
-	struct bio_set *bs = bio->bi_private;
+	struct mapped_device *md = bio->bi_private;
 
-	bio_free(bio, bs);
+	bio_free(bio, md->bs);
 }
 
 /*