diff options
author | Jonathan E Brassow <jbrassow@redhat.com> | 2012-03-07 14:09:48 -0500 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-03-07 14:09:48 -0500 |
commit | 0ca93de9b789e0eb05e103f0c04de72df13da73a (patch) | |
tree | 3a7bd34140d69a9c7bc5eb1874de773511770197 /drivers | |
parent | 3aa3b2b2b1edb813dc5342d0108befc39541542d (diff) |
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')
-rw-r--r-- | drivers/md/dm-raid.c | 1 |
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) | |||
975 | 975 | ||
976 | INIT_WORK(&rs->md.event_work, do_table_event); | 976 | INIT_WORK(&rs->md.event_work, do_table_event); |
977 | ti->private = rs; | 977 | ti->private = rs; |
978 | ti->num_flush_requests = 1; | ||
978 | 979 | ||
979 | mutex_lock(&rs->md.reconfig_mutex); | 980 | mutex_lock(&rs->md.reconfig_mutex); |
980 | ret = md_run(&rs->md); | 981 | ret = md_run(&rs->md); |