dm stripe: expose correct io hints
authorMike Snitzer <snitzer@redhat.com>
Fri, 4 Sep 2009 19:40:25 +0000 (20:40 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 4 Sep 2009 19:40:25 +0000 (20:40 +0100)
commit40bea431274c247425e7f5970d796ff7b37a2b22
treecc9791861c01605d2dca28d3eac9182c301a832c
parenta963a956225eb0f8c4d3537f428153c30adf54b8
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>
drivers/md/dm-stripe.c
drivers/md/dm-table.c
include/linux/device-mapper.h