block: Introduce blk_set_stacking_limits function
authorMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Jan 2012 15:27:11 +0000 (16:27 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Jan 2012 15:27:11 +0000 (16:27 +0100)
commitb1bd055d397e09f99dcef9b138ed104ff1812fcb
treee8e1d3d0b6a33859392bcba516933aff256dc4b4
parentc98b2cc29af8e84e7364b53e9bb4cc7cfaf62555
block: Introduce blk_set_stacking_limits function

Stacking driver queue limits are typically bounded exclusively by the
capabilities of the low level devices, not by the stacking driver
itself.

This patch introduces blk_set_stacking_limits() which has more liberal
metrics than the default queue limits function. This allows us to
inherit topology parameters from bottom devices without manually
tweaking the default limits in each driver prior to calling the stacking
function.

Since there is now a clear distinction between stacking and low-level
devices, blk_set_default_limits() has been modified to carry the more
conservative values that we used to manually set in
blk_queue_make_request().

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-settings.c
drivers/md/dm-table.c
drivers/md/md.c
include/linux/blkdev.h