summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-raid.c
diff options
context:
space:
mode:
authorJonathan E Brassow <jbrassow@redhat.com>2012-03-07 19:09:48 +0000
committerAlasdair G Kergon <agk@redhat.com>2012-03-07 19:09:48 +0000
commit0ca93de9b789e0eb05e103f0c04de72df13da73a (patch)
tree3a7bd34140d69a9c7bc5eb1874de773511770197 /drivers/md/dm-raid.c
parent3aa3b2b2b1edb813dc5342d0108befc39541542d (diff)
downloadblackbird-op-linux-0ca93de9b789e0eb05e103f0c04de72df13da73a.tar.gz
blackbird-op-linux-0ca93de9b789e0eb05e103f0c04de72df13da73a.zip
dm raid: fix flush support
Fix dm-raid flush support. Both md and dm have support for flush, but the dm-raid target forgot to set the flag to indicate that flushes should be passed on. (Important for data integrity e.g. with writeback cache enabled.) Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Acked-by: Mike Snitzer <snitzer@redhat.com> Cc: stable@kernel.org Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-raid.c')
-rw-r--r--drivers/md/dm-raid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c
index f53bb389c18f..787022c18187 100644
--- a/drivers/md/dm-raid.c
+++ b/drivers/md/dm-raid.c
@@ -975,6 +975,7 @@ static int raid_ctr(struct dm_target *ti, unsigned argc, char **argv)
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);
OpenPOWER on IntegriCloud