nvme: allow for size limitations from transport drivers
authorChristoph Hellwig <hch@lst.de>
Mon, 6 Jun 2016 21:20:48 +0000 (23:20 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 12 Jun 2016 13:29:43 +0000 (07:29 -0600)
commita229dbf61e03b70d98f5ed46f476d6369870a6ab
tree84a37b31961aec0df06d14f10d4af20139158c3e
parent3972be23bd2d2bcfaa44595a260a371cd9218872
nvme: allow for size limitations from transport drivers

Some transport drivers may have a lower transfer size than
the controller. So allow the transport to set it in the
controller max_hw_sectors.

Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c