Skip to content

Commit

Permalink
mtip32xx: Set block queue boundary variables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Asai Thambi S P authored and Jens Axboe committed May 31, 2012
1 parent d02e1f0 commit 6c8ab69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/block/mtip32xx/mtip32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3633,7 +3633,10 @@ static int mtip_block_initialize(struct driver_data *dd)
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.
Expand Down

0 comments on commit 6c8ab69

Please sign in to comment.