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 02-28-2012, 12:57 PM
Jonathan Brassow
 
Default Add barrier support to dm-raid

Add barrier support to dm-raid.

MD has support for barriers. DM core has support for barriers. Set the
variable necessary to indicate to DM core that it is ok to pass down
barrier requests - which dm-raid will simply pass along to MD.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>

Index: linux-upstream/drivers/md/dm-raid.c
================================================== =================
--- linux-upstream.orig/drivers/md/dm-raid.c
+++ linux-upstream/drivers/md/dm-raid.c
@@ -971,6 +971,7 @@ static int raid_ctr(struct dm_target *ti

INIT_WORK(&rs->md.event_work, do_table_event);
ti->private = rs;
+ ti->num_flush_requests = 1;

mutex_lock(&rs->md.reconfig_mutex);
ret = md_run(&rs->md);


--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 
Old 02-28-2012, 01:00 PM
Mike Snitzer
 
Default Add barrier support to dm-raid

On Tue, Feb 28 2012 at 8:57am -0500,
Jonathan Brassow <jbrassow@redhat.com> wrote:

> Add barrier support to dm-raid.
>
> MD has support for barriers. DM core has support for barriers. Set the
> variable necessary to indicate to DM core that it is ok to pass down
> barrier requests - which dm-raid will simply pass along to MD.
>
> Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>

Acked-by: Mike Snitzer <snitzer@redhat.com>

--
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 05:01 AM.

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