Re: [PATCH] scsi:sd: define variable dif as unsigned int instead of bool

Martin K. Petersen
2019-10-25T00:37:48Z

> 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.

Applied to 5.4/scsi-fixes, thanks!

--
Martin K. Petersen Oracle Linux Engineering