diff options
-rw-r--r-- | drivers/md/dm-table.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 41ec2bf9fbe9..267817edc844 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c | |||
@@ -956,17 +956,9 @@ no_integrity: | |||
956 | void dm_table_set_restrictions(struct dm_table *t, struct request_queue *q) | 956 | void dm_table_set_restrictions(struct dm_table *t, struct request_queue *q) |
957 | { | 957 | { |
958 | /* | 958 | /* |
959 | * Make sure we obey the optimistic sub devices | 959 | * Copy table's limits to the DM device's request_queue |
960 | * restrictions. | ||
961 | */ | 960 | */ |
962 | blk_queue_max_sectors(q, t->limits.max_sectors); | 961 | q->limits = t->limits; |
963 | blk_queue_max_phys_segments(q, t->limits.max_phys_segments); | ||
964 | blk_queue_max_hw_segments(q, t->limits.max_hw_segments); | ||
965 | blk_queue_logical_block_size(q, t->limits.logical_block_size); | ||
966 | blk_queue_max_segment_size(q, t->limits.max_segment_size); | ||
967 | blk_queue_max_hw_sectors(q, t->limits.max_hw_sectors); | ||
968 | blk_queue_segment_boundary(q, t->limits.seg_boundary_mask); | ||
969 | blk_queue_bounce_limit(q, t->limits.bounce_pfn); | ||
970 | 962 | ||
971 | if (t->limits.no_cluster) | 963 | if (t->limits.no_cluster) |
972 | queue_flag_clear_unlocked(QUEUE_FLAG_CLUSTER, q); | 964 | queue_flag_clear_unlocked(QUEUE_FLAG_CLUSTER, q); |