aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-table.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2009-09-04 15:40:25 -0400
committerAlasdair G Kergon <agk@redhat.com>2009-09-04 15:40:25 -0400
commit40bea431274c247425e7f5970d796ff7b37a2b22 (patch)
treecc9791861c01605d2dca28d3eac9182c301a832c /drivers/md/dm-table.c
parenta963a956225eb0f8c4d3537f428153c30adf54b8 (diff)
dm stripe: expose correct io hints
Set sensible I/O hints for striped DM devices in the topology infrastructure added for 2.6.31 for userspace tools to obtain via sysfs. Add .io_hints to 'struct target_type' to allow the I/O hints portion (io_min and io_opt) of the 'struct queue_limits' to be set by each target and implement this for dm-stripe. Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-table.c')
-rw-r--r--drivers/md/dm-table.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
index c90e662d2802..1a6cb3c7822e 100644
--- a/drivers/md/dm-table.c
+++ b/drivers/md/dm-table.c
@@ -1007,6 +1007,10 @@ int dm_calculate_queue_limits(struct dm_table *table,
1007 ti->type->iterate_devices(ti, dm_set_device_limits, 1007 ti->type->iterate_devices(ti, dm_set_device_limits,
1008 &ti_limits); 1008 &ti_limits);
1009 1009
1010 /* Set I/O hints portion of queue limits */
1011 if (ti->type->io_hints)
1012 ti->type->io_hints(ti, &ti_limits);
1013
1010 /* 1014 /*
1011 * Check each device area is consistent with the target's 1015 * Check each device area is consistent with the target's
1012 * overall queue limits. 1016 * overall queue limits.