]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.fixes/dm_flag_queue_barrier_support
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.fixes / dm_flag_queue_barrier_support
CommitLineData
2cb7cef9
BS
1From: Mikulas Patocka <mpatocka@redhat.com>
2Subject: dm: set queue ordered mode
3Patch-mainline: 2.6.30
4References: bnc#496353
5Acked-by: Nikanth Karthikesan <knikanth@suse.de>
6
7commit 99360b4c18f7675b50d283301d46d755affe75fd
8Author: Mikulas Patocka <mpatocka@redhat.com>
9Date: Thu Apr 2 19:55:39 2009 +0100
10
11 dm: set queue ordered mode
12
13 Set queue ordered mode. It doesn't really matter what we set here
14 because we don't ever put any requests on the queue. But we need to set
15 something other than QUEUE_ORDERED_NONE so that __generic_make_request
16 passes barrier requests to us.
17
18 Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
19 Signed-off-by: Alasdair G Kergon <agk@redhat.com>
20
21---
22 drivers/md/dm.c | 1 +
23 1 file changed, 1 insertion(+)
24
25--- a/drivers/md/dm.c
26+++ b/drivers/md/dm.c
27@@ -1801,6 +1801,7 @@ static struct mapped_device *alloc_dev(i
28 md->queue->backing_dev_info.congested_fn = dm_any_congested;
29 md->queue->backing_dev_info.congested_data = md;
30 blk_queue_make_request(md->queue, dm_request);
31+ blk_queue_ordered(md->queue, QUEUE_ORDERED_DRAIN, NULL);
32 blk_queue_bounce_limit(md->queue, BLK_BOUNCE_ANY);
33 md->queue->unplug_fn = dm_unplug_all;
34 blk_queue_merge_bvec(md->queue, dm_merge_bvec);