Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: core: Show SCMD_LAST in text form

The SCSI debugfs code supports showing information about pending commands,
including translating SCSI command flags from numeric into text format.
Also convert the SCMD_LAST flag from numeric into text form.

Link: https://lore.kernel.org/r/20211129194609.3466071-4-bvanassche@acm.org
Fixes: 8930a6c20791 ("scsi: core: add support for request batching")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
3369046e 7cc5aad6

+1
+1
drivers/scsi/scsi_debugfs.c
··· 9 9 static const char *const scsi_cmd_flags[] = { 10 10 SCSI_CMD_FLAG_NAME(TAGGED), 11 11 SCSI_CMD_FLAG_NAME(INITIALIZED), 12 + SCSI_CMD_FLAG_NAME(LAST), 12 13 }; 13 14 #undef SCSI_CMD_FLAG_NAME 14 15