diff options
author | Jonathan E Brassow <jbrassow@redhat.com> | 2012-03-07 20:09:48 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-03-07 20:09:48 +0100 |
commit | 0ca93de9b789e0eb05e103f0c04de72df13da73a (patch) | |
tree | 3a7bd34140d69a9c7bc5eb1874de773511770197 /drivers/md/dm-raid.c | |
parent | dm raid: set MD_CHANGE_DEVS when rebuilding (diff) | |
download | linux-0ca93de9b789e0eb05e103f0c04de72df13da73a.tar.xz 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.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) 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); |