aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMartin K. Petersen <[email protected]>2019-02-12 16:21:05 -0500
committerMartin K. Petersen <[email protected]>2019-02-26 10:08:36 -0500
commita83da8a4509d3ebfe03bb7fffce022e4d5d4764f (patch)
tree83b3e9c1ee9892d95bb0b5ecf9c9c0837a9c72a1 /tools/perf/scripts/python/export-to-postgresql.py
parentd1420f2c0fdf41abfb7ba3b9fd7b4157823bc2a7 (diff)
scsi: sd: Optimal I/O size should be a multiple of physical block size
It was reported that some devices report an OPTIMAL TRANSFER LENGTH of 0xFFFF blocks. That looks bogus, especially for a device with a 4096-byte physical block size. Ignore OPTIMAL TRANSFER LENGTH if it is not a multiple of the device's reported physical block size. To make the sanity checking conditionals more readable--and to facilitate printing warnings--relocate the checking to a helper function. No functional change aside from the printks. Cc: <[email protected]> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=199759 Reported-by: Christoph Anton Mitterer <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions