properly report SCSI status codes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | Fix scsi-disk sense-key/status confusionqemu/ | +25 | 0 replies | |
| 2/3 | scsi-disk aio_flushqemu/ | +12 | 0 replies | |
| 3/3 | LSI rename sense variableqemu/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [patch 0/3] properly report SCSI status codes
The scsi-disk implementation passes the sense key information to the driver ->completion() callback.
The LSI driver (and esp / usb storage too, apparently) are expecting a scsi status code. The sense key information should be returned in the sense buffer or later upon a REQUEST SENSE command.
For example, right now the guest interprets a completed command with HARDWARE_ERROR sense key as scsi status code "CONDITION MET".
As a separate note, the current barrier implementation in Linux ignores SCSI status errors (James Bottomley sent a patch to linux-scsi a few minutes ago on that).