diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2017-09-27 21:38:59 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-02 22:16:25 -0400 |
commit | 77082ca503bed061f7fbda7cfd7c93beda967a41 (patch) | |
tree | dc722721e00d0a3f6ec06f379fd679a76684214b /drivers/scsi/libiscsi.c | |
parent | 28a0bc4120d38a394499382ba21d6965a67a3703 (diff) |
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: Don Brace <don.brace@microsemi.com>
Reviewed-by: Martin Wilck <mwilck@suse.com>
Tested-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/libiscsi.c')
0 files changed, 0 insertions, 0 deletions