Re: [RFC PATCH 00/42] SCSI result cleanup, part 2

Bart Van Assche
2021-04-21T22:26:24Z

On 4/21/21 10:47 AM, Hannes Reinecke wrote:
> My plan here is move every driver to use accessors for the
> remaining bytes in the SCSI result, and with that move the
> SCSI result over into two separate values.

This patch series modifies scsi_execute() such that it either returns a
negative Unix error code or a positive SCSI status value that includes
the host byte and status byte. I think that a union is a good way to
model such return values. I'd like to use something similar to the
scsi_status union from my patch series to model such return values. I
think that union is also appropriate as a replacement for the 'result'
member of struct scsi_cmnd.

Thanks,

Bart.