block: Introduce helper to reset queue limits to default values
authorMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Jun 2009 06:23:52 +0000 (08:23 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 16 Jun 2009 06:23:52 +0000 (08:23 +0200)
commite475bba2fdee9c3dbfe25f026f8fb8de69508ad2
treecb2a050b58fbd8cd7a4d82349164622fedc2c6d0
parent6923715ae39ed39ac2fc1993e5061668f4f71ad0
block: Introduce helper to reset queue limits to default values

DM reuses the request queue when swapping in a new device table
Introduce blk_set_default_limits() which can be used to reset the the
queue_limits prior to stacking devices.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Alasdair G Kergon <agk@redhat.com>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-settings.c
include/linux/blkdev.h