summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorAsai Thambi S P <asamymuthupa@micron.com>2012-05-29 18:42:51 -0700
committerJens Axboe <axboe@kernel.dk>2012-05-31 08:46:50 +0200
commit6c8ab69818e9469c864eea7d47c3d1c36ecd1e95 (patch)
tree4b46a99bd458fb8536eaaf370a571adf51a57b98 /drivers/block
parentd02e1f0ad098b3b36853d639e9befeb273c63cc5 (diff)
downloadlinux-3.10-6c8ab69818e9469c864eea7d47c3d1c36ecd1e95.tar.gz
linux-3.10-6c8ab69818e9469c864eea7d47c3d1c36ecd1e95.tar.bz2
linux-3.10-6c8ab69818e9469c864eea7d47c3d1c36ecd1e95.zip
mtip32xx: Set block queue boundary variables
Set the following block queue boundary variables * max_hw_sectors * max_segment_size Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com> Removed setting of q->nr_requests. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/mtip32xx/mtip32xx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c
index 4e7275cb67b..07cc07febbe 100644
--- a/drivers/block/mtip32xx/mtip32xx.c
+++ b/drivers/block/mtip32xx/mtip32xx.c
@@ -3633,7 +3633,10 @@ skip_create_disk:
set_bit(QUEUE_FLAG_NONROT, &dd->queue->queue_flags);
blk_queue_max_segments(dd->queue, MTIP_MAX_SG);
blk_queue_physical_block_size(dd->queue, 4096);
+ blk_queue_max_hw_sectors(dd->queue, 0xffff);
+ blk_queue_max_segment_size(dd->queue, 0x400000);
blk_queue_io_min(dd->queue, 4096);
+
/*
* write back cache is not supported in the device. FUA depends on
* write back cache support, hence setting flush support to zero.