]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Set queue max segments
authorKeith Busch <keith.busch@intel.com>
Wed, 12 Aug 2015 22:17:54 +0000 (16:17 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:31:52 +0000 (16:31 -0700)
commit0981d848c3ca7969c2bd7cd39a0cf015d754247a
tree09eb00f65e4e980b0de1b2f226bad05a7d123540
parent0badf2518d09586d74e9e556c498ed5a304e5f55
NVMe: Set queue max segments

This sets the queue's max segment size to match the device's
capabilities. The default of 128 is usable until a device's transfer
capability exceeds 512k, assuming a device page size of 4k. Many nvme
devices exceed that transfer limit, so this lets the block layer know what
kind of commands it to allow to form rather than unnecessarily split them.

One additional segment is added to account for a transfer that may start
in the middle of a page.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit e824410ffcf4b245296b56c6fdf7b9797fce8c3e)

Orabug: 22620486
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/block/nvme-core.c