aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Strachan <astrachan@google.com>2019-01-23 13:39:21 -0800
committerAlistair Strachan <astrachan@google.com>2019-01-23 13:39:37 -0800
commit8f9cdb071e511f7fb3a8c3a6a06af0f756bcbdc6 (patch)
tree47dbe53294965bdf098505fdff00a8398dca116d
parent80fa62ba17e88da86d5a5d4761da963b79c6c6ed (diff)
Revert "UPSTREAM: dm: do not allow readahead to limit IO size"
This reverts commit 80fa62ba17e88da86d5a5d4761da963b79c6c6ed. Reason for revert: Breaks the build Change-Id: Ie077801bd6193f0c5be9b6f70dd422376c411044 Signed-off-by: Alistair Strachan <astrachan@google.com>
-rw-r--r--drivers/md/dm-table.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
index b4775407ece8..0e79a435e8bd 100644
--- a/drivers/md/dm-table.c
+++ b/drivers/md/dm-table.c
@@ -1638,9 +1638,6 @@ void dm_table_set_restrictions(struct dm_table *t, struct request_queue *q,
smp_mb();
if (dm_table_request_based(t))
queue_flag_set_unlocked(QUEUE_FLAG_STACKABLE, q);
-
- /* io_pages is used for readahead */
- q->backing_dev_info.io_pages = limits->max_sectors >> (PAGE_SHIFT - 9);
}
unsigned int dm_table_get_num_targets(struct dm_table *t)