Skip to content

scsi: More detailed I/O errors

Hannes Reinecke dm-devel linux-fsdevel linux-scsi 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyIn review
  2. v2 posting 2/25 patches 2 repliesSuperseded
  3. v2 posting 1/23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches4 repliesSuperseded

Changes in v3 from the cover letter

- Modify dm-mpath to handle ENOSPC

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4scsi: Document enhanced error codesdrivers/scsi/scsi_lib.c+12 -00 replies
2/4scsi: Set hostbyte status in scsi_check_sense()drivers/scsi/scsi_error.c include/scsi/scsi.h+7 -150 replies
3/4scsi: return ENOSPC on thin provisioning failureblock/blk-core.c drivers/scsi/scsi_error.c drivers/scsi/scsi_lib.c +1 more+15 -10 replies
4/4scsi: Return ENODATA on medium errorblock/blk-core.c drivers/md/dm-mpath.c drivers/scsi/scsi_error.c +2 more+25 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCHv3 0/4] scsi: More detailed I/O errors

As discussed at LSF the SCSI stack already knows about several error conditions, it's just not well documented. Also there are some more conditions upper layers might be interested in.

This patchset improves the documentation of the existing I/O error codes and adds two more error codes, ENOSPC for thin provisioning failure and ENODATA for medium error.

Changes since the initial version:
- Correctly document all return codes in
__scsi_error_from_host_byte()
- Set hostbyte status in scsi_check_sense()

Changes since v2:
- Modify dm-mpath to handle ENOSPC

Hannes Reinecke (4):
scsi: Document enhanced error codes
scsi: Set hostbyte status in scsi_check_sense()
scsi: return ENOSPC on thin provisioning failure
scsi: Return ENODATA on medium error

 block/blk-core.c          |  6 ++++++
 drivers/md/dm-mpath.c     | 16 +++++++++++++++-
 drivers/scsi/scsi_error.c | 28 +++++++++++++---------------
 drivers/scsi/scsi_lib.c   | 22 ++++++++++++++++++++++
 include/scsi/scsi.h       |  3 ++-
 5 files changed, 58 insertions(+), 17 deletions(-)
Signature · 1 line
1.7.12.4