diff options
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.patch | 37 |
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 @@ | |||
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 | ||
5 | |||
6 | commit 0ca93de9b789e0eb05e103f0c04de72df13da73a upstream. | ||
7 | |||
8 | Fix dm-raid flush support. | ||
9 | |||
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.) | ||
14 | |||
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(+) | ||
22 | |||
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 | ||
37 | |||