• Keith Busch's avatar
    NVMe: Set queue max segments · e824410f
    Keith Busch authored
    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: default avatarKeith Busch <keith.busch@intel.com>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    e824410f
nvme-core.c 83.2 KB