summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDamien Le Moal <dlemoal@kernel.org>2026-09-08 18:03:00 +0900
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-09-16 10:42:48 -0400
commit3f94a6f129bf5bf2e634049d438b8794e019c17f (patch)
tree0ac0fc780be874b575a1fda271a01801ce4bb4fe /tools/perf/scripts/python/export-to-postgresql.py
parent1b7ea7bb198e73a5237d3799187e46fe2b818ef5 (diff)
downloadlinux-next-3f94a6f129bf5bf2e634049d438b8794e019c17f.tar.gz
linux-next-3f94a6f129bf5bf2e634049d438b8794e019c17f.zip
scsi: hpsa: Use combined sense codes
Refactor the hpsa driver to 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. The function decode_sense_data() is also modified to take a pointer to a 16-bit sense_code variable in place of the two pointers to the additional sense code and its code qualifier. The local definitions of ASCs and ASCQs are deleted too. No functional change intended, but the function hpsa_volume_offline() was checking only the addditional sense code qualifier with checking the additional sense code. This change assumes that the intended additional sense code to check is ASC_LU_NOT_READY. Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Hannes Reinecke <hare@kernel.org> Acked-by: Don Brace <don.brace@microchip.com> Link: https://patch.msgid.link/20260908090308.1085097-33-dlemoal@kernel.org Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions