From: Kiyoshi Ueda <[email-masked]>

Clone integrity payload in request-based dm code path.

Signed-off-by: Kiyoshi Ueda <[email-masked]>
Signed-off-by: Jun'ichi Nomura <[email-masked]>
Cc: Martin K. Petersen <[email-masked]>
Cc: Alasdair G Kergon <[email-masked]>

---
 drivers/md/dm.c |    5 +++++
 1 files changed, 5 insertions(+)

Index: linux-2.6.29-rc7/drivers/md/dm.c
===================================================================
--- linux-2.6.29-rc7.orig/drivers/md/dm.c	2009-03-05 12:10:20.000000000 +0000
+++ linux-2.6.29-rc7/drivers/md/dm.c	2009-03-05 12:10:24.000000000 +0000
@@ -1369,6 +1369,11 @@ static int clone_request_bios(struct req
 		}
 
 		__bio_clone(clone_bio, bio);
+		if (bio_integrity(bio))
+			if (bio_integrity_clone(clone_bio, bio, GFP_ATOMIC,
+						md->bs) < 0)
+				goto free_and_out;
+
 		clone_bio->bi_destructor = dm_bio_destructor;
 		clone_bio->bi_end_io = end_clone_bio;
 		info->rq = clone;