> -----Original Message----- > From: linux-scsi-owner@xxxxxxxxxxxxxxx [mailto:linux-scsi- > owner@xxxxxxxxxxxxxxx] On Behalf Of Martin K. Petersen > Sent: Wednesday, September 27, 2017 8:39 PM > To: linux-scsi@xxxxxxxxxxxxxxx > Cc: Martin K. Petersen <martin.petersen@xxxxxxxxxx> > Subject: [PATCH] scsi: sd: Do not override max_sectors_kb sysfs setting > > EXTERNAL EMAIL > > > 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@xxxxxxxxxxxxx> > Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> Tested-by: Don Brace <don.brace@xxxxxxxxxxxxx> Really appreciate your attention to this matter. Thanks, Don Brace ESC - Smart Storage Microsemi Corporation