Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7fad1fd4 authored by Jon Derrick's avatar Jon Derrick Committed by Christoph Hellwig
Browse files

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: default avatarJon Derrick <jonathan.derrick@intel.com>
Reviewed-by: default avatarJens Axboe <axboe@fb.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent de41447a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment