]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0091-dm-raid-fix-flush-support.patch
linux-ti335x-psp 3.2: update to v3.2.11
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.10 / 0091-dm-raid-fix-flush-support.patch
1 From 8092731b611778e6151662f3cc35d02101bd0ab8 Mon Sep 17 00:00:00 2001
2 From: Jonathan E Brassow <jbrassow@redhat.com>
3 Date: Wed, 7 Mar 2012 19:09:48 +0000
4 Subject: [PATCH 91/95] dm raid: fix flush support
6 commit 0ca93de9b789e0eb05e103f0c04de72df13da73a upstream.
8 Fix dm-raid flush support.
10 Both md and dm have support for flush, but the dm-raid target
11 forgot to set the flag to indicate that flushes should be
12 passed on.  (Important for data integrity e.g. with writeback cache
13 enabled.)
15 Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
16 Acked-by: Mike Snitzer <snitzer@redhat.com>
17 Signed-off-by: Alasdair G Kergon <agk@redhat.com>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 ---
20  drivers/md/dm-raid.c |    1 +
21  1 file changed, 1 insertion(+)
23 diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c
24 index 4834d43..d2a3223 100644
25 --- a/drivers/md/dm-raid.c
26 +++ b/drivers/md/dm-raid.c
27 @@ -974,6 +974,7 @@ static int raid_ctr(struct dm_target *ti, unsigned argc, char **argv)
28  
29         INIT_WORK(&rs->md.event_work, do_table_event);
30         ti->private = rs;
31 +       ti->num_flush_requests = 1;
32  
33         mutex_lock(&rs->md.reconfig_mutex);
34         ret = md_run(&rs->md);
35 -- 
36 1.7.9.4