Re: [PATCH v2] scsi: sg: report request-table problems when any status is set

From: Martin K. Petersen

Date: Sun Jul 12 2026 - 22:36:01 EST


On Tue, 07 Jul 2026 11:08:45 +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.2/scsi-fixes, thanks!

[1/1] scsi: sg: report request-table problems when any status is set
https://git.kernel.org/mkp/scsi/c/1d3a742afeb7

--
Martin K. Petersen