git: 38e831a8956e - main - cam: Add comment about recovery ccbs

From: Warner Losh <imp_at_FreeBSD.org>
Date: Fri, 21 Jul 2023 04:32:29 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=38e831a8956e10809003e632a37f958e32578c9f

commit 38e831a8956e10809003e632a37f958e32578c9f
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-07-21 04:21:57 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-07-21 04:32:30 +0000

    cam: Add comment about recovery ccbs
    
    SS_START and higher actions (currently only SS_TUR) allocate a recovery
    CCB to send a command to the periph. Add a quick comment about that here.
    
    Sponsored by:           Netflix
    Reviewed by:            mav
    Differential Revision:  https://reviews.freebsd.org/D41081
---
 sys/cam/scsi/scsi_all.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/cam/scsi/scsi_all.h b/sys/cam/scsi/scsi_all.h
index 4087c7b01778..37a58fda433e 100644
--- a/sys/cam/scsi/scsi_all.h
+++ b/sys/cam/scsi/scsi_all.h
@@ -72,6 +72,8 @@ typedef enum {
 	SS_NOP      = 0x000000,	/* Do nothing */
 	SS_RETRY    = 0x010000,	/* Retry the command */
 	SS_FAIL     = 0x020000,	/* Bail out */
+
+	/* Actions larger than SS_START allocate a recovery CCB */
 	SS_START    = 0x030000,	/* Send a Start Unit command to the device,
 				 * then retry the original command.
 				 */