diff options
author | Chaotian Jing <[email protected]> | 2024-08-13 13:34:10 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2024-08-16 21:02:06 -0400 |
commit | f03e94f23b04c2b71c0044c1534921b3975ef10c (patch) | |
tree | c61e7fa56be6def923cb6efdcab955f08b59a94f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2fa62ce91a52e704716d08f9a8eb3f9e7e04710d (diff) |
scsi: core: Fix the return value of scsi_logical_block_count()
scsi_logical_block_count() should return the block count of a given SCSI
command. The original implementation ended up shifting twice, leading to an
incorrect count being returned. Fix the conversion between bytes and
logical blocks.
Cc: [email protected]
Fixes: 6a20e21ae1e2 ("scsi: core: Add helper to return number of logical blocks in a request")
Signed-off-by: Chaotian Jing <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Bart Van Assche <[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