Thread (90 messages) flat view 90 messages, 4 authors, 23h ago

Re: [PATCH v2 08/40] scsi: sd: use 16-bits defined sense codes

From: Hannes Reinecke <hare@suse.de>
Date: 2026-09-07 12:25:58
Also in: linux-ide, linux-s390, linux-scsi

On 9/3/26 5:41 AM, Damien Le Moal wrote:
Refactor the SCSI disk driver to use as much as possible the 16-bits
sense_code field of struct scsi_sense_hdr and struct scsi_failure and
replace all hard-coded additional sense codes and additional sense code
qualifiers with the enum values defined in include/scsi/scsi_sense.h. This
helps with code clarity as the sense codes being processed are easier to
test and self-documented.

No functional change intended.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
---
  drivers/scsi/sd.c     | 106 +++++++++++++++++++++---------------------
  drivers/scsi/sd_zbc.c |   2 +-
  2 files changed, 53 insertions(+), 55 deletions(-)
Reviewed-by: Hannes Reinecke <hare@kernel.org>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare@suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help