Skip to content
Commit 77082ca5 authored by Martin K. Petersen's avatar Martin K. Petersen
Browse files

scsi: sd: Do not override max_sectors_kb sysfs setting



A user may lower the max_sectors_kb setting in sysfs to accommodate
certain workloads. Previously we would always set the max I/O size to
either the block layer default or the optional preferred I/O size
reported by the device.

Keep the current heuristics for the initial setting of max_sectors_kb.
For subsequent invocations, only update the current queue limit if it
exceeds the capabilities of the hardware.

Cc: <stable@vger.kernel.org>
Reported-by: default avatarDon Brace <don.brace@microsemi.com>
Reviewed-by: default avatarMartin Wilck <mwilck@suse.com>
Tested-by: default avatarDon Brace <don.brace@microsemi.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 28a0bc41
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment