aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-01-15 15:24:45 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-15 15:24:45 -0500
commitb3c9dd182ed3bdcdaf0e42625a35924b0497afdc (patch)
treead48ad4d923fee147c736318d0fad35b3755f4f5 /drivers/md
parent83c2f912b43c3a7babbb6cb7ae2a5276c1ed2a3e (diff)
parent5d381efb3d1f1ef10535a31ca0dd9b22fe1e1922 (diff)
Merge branch 'for-3.3/core' of git://git.kernel.dk/linux-block
* 'for-3.3/core' of git://git.kernel.dk/linux-block: (37 commits) Revert "block: recursive merge requests" block: Stop using macro stubs for the bio data integrity calls blockdev: convert some macros to static inlines fs: remove unneeded plug in mpage_readpages() block: Add BLKROTATIONAL ioctl block: Introduce blk_set_stacking_limits function block: remove WARN_ON_ONCE() in exit_io_context() block: an exiting task should be allowed to create io_context block: ioc_cgroup_changed() needs to be exported block: recursive merge requests block, cfq: fix empty queue crash caused by request merge block, cfq: move icq creation and rq->elv.icq association to block core block, cfq: restructure io_cq creation path for io_context interface cleanup block, cfq: move io_cq exit/release to blk-ioc.c block, cfq: move icq cache management to block core block, cfq: move io_cq lookup to blk-ioc.c block, cfq: move cfqd->icq_list to request_queue and add request->elv.icq block, cfq: reorganize cfq_io_context into generic and cfq specific parts block: remove elevator_queue->ops block: reorder elevator switch sequence ... Fix up conflicts in: - block/blk-cgroup.c Switch from can_attach_task to can_attach - block/cfq-iosched.c conflict with now removed cic index changes (we now use q->id instead)
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-table.c6
-rw-r--r--drivers/md/md.c1
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
index 8e9132130142..63cc54289aff 100644
--- a/drivers/md/dm-table.c
+++ b/drivers/md/dm-table.c
@@ -699,7 +699,7 @@ static int validate_hardware_logical_block_alignment(struct dm_table *table,
699 while (i < dm_table_get_num_targets(table)) { 699 while (i < dm_table_get_num_targets(table)) {
700 ti = dm_table_get_target(table, i++); 700 ti = dm_table_get_target(table, i++);
701 701
702 blk_set_default_limits(&ti_limits); 702 blk_set_stacking_limits(&ti_limits);
703 703
704 /* combine all target devices' limits */ 704 /* combine all target devices' limits */
705 if (ti->type->iterate_devices) 705 if (ti->type->iterate_devices)
@@ -1221,10 +1221,10 @@ int dm_calculate_queue_limits(struct dm_table *table,
1221 struct queue_limits ti_limits; 1221 struct queue_limits ti_limits;
1222 unsigned i = 0; 1222 unsigned i = 0;
1223 1223
1224 blk_set_default_limits(limits); 1224 blk_set_stacking_limits(limits);
1225 1225
1226 while (i < dm_table_get_num_targets(table)) { 1226 while (i < dm_table_get_num_targets(table)) {
1227 blk_set_default_limits(&ti_limits); 1227 blk_set_stacking_limits(&ti_limits);
1228 1228
1229 ti = dm_table_get_target(table, i++); 1229 ti = dm_table_get_target(table, i++);
1230 1230
diff --git a/drivers/md/md.c b/drivers/md/md.c
index da52acb60f52..9417ae2fa0bb 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -4666,6 +4666,7 @@ static int md_alloc(dev_t dev, char *name)
4666 mddev->queue->queuedata = mddev; 4666 mddev->queue->queuedata = mddev;
4667 4667
4668 blk_queue_make_request(mddev->queue, md_make_request); 4668 blk_queue_make_request(mddev->queue, md_make_request);
4669 blk_set_stacking_limits(&mddev->queue->limits);
4669 4670
4670 disk = alloc_disk(1 << shift); 4671 disk = alloc_disk(1 << shift);
4671 if (!disk) { 4672 if (!disk) {