]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-scsi: Consider LBA format in IO splitting calculation
authorJon Derrick <jonathan.derrick@intel.com>
Tue, 25 Apr 2017 00:02:43 +0000 (18:02 -0600)
committerChristoph Hellwig <hch@lst.de>
Tue, 25 Apr 2017 18:01:00 +0000 (20:01 +0200)
commit6c70a390506d080957fe212694fa312a1b8de7c2
tree50c5ecde574c0103042b1fb26297b7e667d82a67
parenta84d81f264de335a9cd891b1964837558fb2c50d
nvme-scsi: Consider LBA format in IO splitting calculation

The current command submission code uses a sector-based value when
considering the maximum number of blocks per command. With a
4k-formatted namespace and a command exceeding max hardware limits, this
calculation doesn't split IOs which should be split and fails in the
nvme layer. This patch fixes that calculation and enables IO splitting
in these circumstances.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Reviewed-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/scsi.c