FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 03-18-2009, 07:58 AM
Kiyoshi Ueda
 
Default dm co add integrity feature to request-based dm

This patch clones integrity payload in request-based dm code path.

Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Alasdair G Kergon <agk@redhat.com>
---
drivers/md/dm.c | 5 +++++
1 file changed, 5 insertions(+)

Index: 2.6.29-rc8/drivers/md/dm.c
================================================== =================
--- 2.6.29-rc8.orig/drivers/md/dm.c
+++ 2.6.29-rc8/drivers/md/dm.c
@@ -1385,6 +1385,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;

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 12:07 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org