diff options
author | Jonathan E Brassow <jbrassow@redhat.com> | 2012-03-07 19:09:48 +0000 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-03-07 19:09:48 +0000 |
commit | 0ca93de9b789e0eb05e103f0c04de72df13da73a (patch) | |
tree | 3a7bd34140d69a9c7bc5eb1874de773511770197 /drivers | |
parent | 3aa3b2b2b1edb813dc5342d0108befc39541542d (diff) | |
download | linux-stable-0ca93de9b789e0eb05e103f0c04de72df13da73a.tar.gz linux-stable-0ca93de9b789e0eb05e103f0c04de72df13da73a.tar.bz2 linux-stable-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')
-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); |