Re: [PATCH] scsi: sg: report request-table problems when any status is set
From: Martin K. Petersen (Oracle)
Date: Wed Sep 02 2026 - 23:13:35 EST
On Mon, 06 Jul 2026 16:44:43 +0800, raoxu wrote:
> SG_GET_REQUEST_TABLE reports per-request diagnostic state through
> sg_req_info::problem. The field is meant to indicate whether there is
> an error to report for a completed request.
>
> sg_fill_request_table() currently combines masked_status, host_status
> and driver_status with bitwise AND. This only reports a problem when all
> three status fields are non-zero at the same time. A normal target check
> condition, for example, has masked_status set while host_status and
> driver_status may both be zero, so the request is incorrectly reported
> as clean.
>
> [...]
Applied to 7.3/scsi-fixes, thanks!
[1/1] scsi: sg: report request-table problems when any status is set
https://git.kernel.org/mkp/scsi/c/11300f8ddee3
--
Martin K. Petersen