diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2017-09-27 21:38:59 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-12 11:27:33 +0200 |
commit | 9e78ac87626a92fdf71e519f71a76c6f6d4dfea3 (patch) | |
tree | d274f7a8773e97fea9ea4e221dbe74ec953bb142 /drivers/media/dvb-frontends/m88rs2000.c | |
parent | fc29713fa7c78fda30855444eeab2d5ea8088762 (diff) |
scsi: sd: Do not override max_sectors_kb sysfs setting
commit 77082ca503bed061f7fbda7cfd7c93beda967a41 upstream.
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.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media/dvb-frontends/m88rs2000.c')
0 files changed, 0 insertions, 0 deletions