aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2020-05-14 14:56:26 +0900
committerChristoph Hellwig <[email protected]>2020-05-27 07:12:37 +0200
commit68ab60ca2d6bd8e6b1ecc2857a174c1c2b9451e9 (patch)
treeb4e4a0e4f4a2451d5854a7ecd495fa03db2865ec /tools/perf/scripts/python/mem-phys-addr.py
parent84e4c204b6a0e81f56bd7d1254123390ef0498c8 (diff)
nvme: fix io_opt limit setting
Currently, a namespace io_opt queue limit is set by default to the physical sector size of the namespace and to the the write optimal size (NOWS) when the namespace reports optimal IO sizes. This causes problems with block limits stacking in blk_stack_limits() when a namespace block device is combined with an HDD which generally do not report any optimal transfer size (io_opt limit is 0). The code: /* Optimal I/O a multiple of the physical block size? */ if (t->io_opt & (t->physical_block_size - 1)) { t->io_opt = 0; t->misaligned = 1; ret = -1; } in blk_stack_limits() results in an error return for this function when the combined devices have different but compatible physical sector sizes (e.g. 512B sector SSD with 4KB sector disks). Fix this by not setting the optimal IO size queue limit if the namespace does not report an optimal write size value. Signed-off-by: Damien Le Moal <[email protected]> Reviewed-by: Bart van Assche <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions