Fix unaligned queue_limit->io_opt on SAS and 4KN disk
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | scsi: sd: Rounddown host->opt_sectors to logicaldrivers/ | +2 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/1] Fix unaligned queue_limit->io_opt on SAS and 4KN disk
If there is an SAS attached disk we set the SCSI host opt_sectors in sas_host_setup() to either dma_opt_mapping_size() or host->max_sectors this value can be later assigned to the device queue_limit as io_opt, but there is no further check if the io_opt is aligned with the device limits.
Rounding down to device logical_sectors will keep the io_opt large enough to keep benefit of bigger IO but still aligned within the device limits.
Lukas Herbolt (1):
scsi: sd: Rounddown host->opt_sectors to logical sectors reported by
the disk.
drivers/scsi/sd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.51.1