Commit 77082ca
committed
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>1 parent 28a0bc4 commit 77082ca
1 file changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3107 | 3107 | | |
3108 | 3108 | | |
3109 | 3109 | | |
3110 | | - | |
3111 | | - | |
3112 | 3110 | | |
3113 | 3111 | | |
3114 | 3112 | | |
| |||
3123 | 3121 | | |
3124 | 3122 | | |
3125 | 3123 | | |
3126 | | - | |
| 3124 | + | |
3127 | 3125 | | |
3128 | 3126 | | |
3129 | 3127 | | |
| |||
3137 | 3135 | | |
3138 | 3136 | | |
3139 | 3137 | | |
3140 | | - | |
3141 | | - | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
3142 | 3151 | | |
3143 | 3152 | | |
3144 | 3153 | | |
| |||
0 commit comments