summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0091-dm-raid-fix-flush-support.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0091-dm-raid-fix-flush-support.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0091-dm-raid-fix-flush-support.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0091-dm-raid-fix-flush-support.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0091-dm-raid-fix-flush-support.patch
new file mode 100644
index 00000000..da0b5f33
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0091-dm-raid-fix-flush-support.patch
@@ -0,0 +1,37 @@
1From 8092731b611778e6151662f3cc35d02101bd0ab8 Mon Sep 17 00:00:00 2001
2From: Jonathan E Brassow <jbrassow@redhat.com>
3Date: Wed, 7 Mar 2012 19:09:48 +0000
4Subject: [PATCH 91/95] dm raid: fix flush support
5
6commit 0ca93de9b789e0eb05e103f0c04de72df13da73a upstream.
7
8Fix dm-raid flush support.
9
10Both md and dm have support for flush, but the dm-raid target
11forgot to set the flag to indicate that flushes should be
12passed on. (Important for data integrity e.g. with writeback cache
13enabled.)
14
15Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
16Acked-by: Mike Snitzer <snitzer@redhat.com>
17Signed-off-by: Alasdair G Kergon <agk@redhat.com>
18Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19---
20 drivers/md/dm-raid.c | 1 +
21 1 file changed, 1 insertion(+)
22
23diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c
24index 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--
361.7.9.4
37