* [PATCH] Add barrier support to dm-raid
@ 2012-02-28 13:57 Jonathan Brassow
2012-02-28 14:00 ` Mike Snitzer
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Brassow @ 2012-02-28 13:57 UTC (permalink / raw)
To: dm-devel, linux-raid; +Cc: agk, neilb
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);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Add barrier support to dm-raid
2012-02-28 13:57 [PATCH] Add barrier support to dm-raid Jonathan Brassow
@ 2012-02-28 14:00 ` Mike Snitzer
0 siblings, 0 replies; 2+ messages in thread
From: Mike Snitzer @ 2012-02-28 14:00 UTC (permalink / raw)
To: Jonathan Brassow; +Cc: dm-devel, linux-raid, agk
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-28 14:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-28 13:57 [PATCH] Add barrier support to dm-raid Jonathan Brassow
2012-02-28 14:00 ` Mike Snitzer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).