]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: core: Introduce an enumeration type for the SCSI_MLQUEUE constants
authorBart Van Assche <bvanassche@acm.org>
Thu, 13 Nov 2025 18:17:30 +0000 (10:17 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Dec 2025 03:20:26 +0000 (22:20 -0500)
commit0f9c4be787f786cff0bf2183607e54a552a40cb2
tree00cb9edb2e8b4ed86a2234ce6b636aa0c339a28d
parentc6e9ddc099d0d302eb73e8c63ce89f0d4da1f475
scsi: core: Introduce an enumeration type for the SCSI_MLQUEUE constants

Multiple functions in the SCSI core accept an 'int reason' argument.
The 'int' type of these arguments doesn't make it clear what values are
acceptable for these arguments. Document which values are supported for
these arguments by introducing the enumeration type scsi_qc_status. 'qc'
in the type name stands for 'queuecommand' since the values passed as
the 'reason' argument are the .queuecommand() return values.

Cc: John Garry <john.g.garry@oracle.com>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20251113181730.1109331-1-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_priv.h
include/scsi/scsi.h