diff options
author | Xiang Chen <[email protected]> | 2019-10-22 14:27:08 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2019-10-24 20:34:10 -0400 |
commit | 0cf9f4e547cebb5f5d2d046437c71ddcc8ea4a39 (patch) | |
tree | 741faaddd2164a0a17f01fab377e4d5bf372026e /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | fc5b220b2dcf8b512d9bd46fd17f82257e49bf89 (diff) |
scsi: sd: define variable dif as unsigned int instead of bool
Variable dif in function sd_setup_read_write_cmnd() is the return value of
function scsi_host_dif_capable() which returns dif capability of disks. If
define it as bool, even for the disks which support DIF3, the function
still return dif=1, which causes IO error. So define variable dif as
unsigned int instead of bool.
Fixes: e249e42d277e ("scsi: sd: Clean up sd_setup_read_write_cmnd()")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Xiang Chen <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions