diff options
author | Alexander Motin <mav@FreeBSD.org> | 2020-05-29 13:07:52 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2020-05-29 13:07:52 +0000 |
commit | dbcf7598b0f4c64ee88fe265cf9c7a0b18e6adbd (patch) | |
tree | 3bb1565ab8ffc35cd92b1202c83bba782ce32177 /sys/cam | |
parent | e43ae8dcb54a078ac5d7fa0a0fb28db0a989d560 (diff) | |
download | src-dbcf7598b0f4c64ee88fe265cf9c7a0b18e6adbd.tar.gz src-dbcf7598b0f4c64ee88fe265cf9c7a0b18e6adbd.zip |
Report STATUS_QUEUED/SENT in `ctladm dumpooa` output.
MFC after: 2 weeks
Sponsored by: iXsystems, Inc.
Notes
Notes:
svn path=/head/; revision=361625
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/ctl/ctl.c | 6 | ||||
-rw-r--r-- | sys/cam/ctl/ctl_ioctl.h | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c index 215790c0cfd2..3c325a8242a8 100644 --- a/sys/cam/ctl/ctl.c +++ b/sys/cam/ctl/ctl.c @@ -2433,6 +2433,12 @@ ctl_ioctl_fill_ooa(struct ctl_lun *lun, uint32_t *cur_fill_num, if (io->io_hdr.flags & CTL_FLAG_DMA_QUEUED) entry->cmd_flags |= CTL_OOACMD_FLAG_DMA_QUEUED; + + if (io->io_hdr.flags & CTL_FLAG_STATUS_QUEUED) + entry->cmd_flags |= CTL_OOACMD_FLAG_STATUS_QUEUED; + + if (io->io_hdr.flags & CTL_FLAG_STATUS_SENT) + entry->cmd_flags |= CTL_OOACMD_FLAG_STATUS_SENT; } mtx_unlock(&lun->lun_lock); } diff --git a/sys/cam/ctl/ctl_ioctl.h b/sys/cam/ctl/ctl_ioctl.h index 322eccb16658..49c48afbd766 100644 --- a/sys/cam/ctl/ctl_ioctl.h +++ b/sys/cam/ctl/ctl_ioctl.h @@ -247,7 +247,9 @@ typedef enum { CTL_OOACMD_FLAG_BLOCKED = 0x02, CTL_OOACMD_FLAG_ABORT = 0x04, CTL_OOACMD_FLAG_RTR = 0x08, - CTL_OOACMD_FLAG_DMA_QUEUED = 0x10 + CTL_OOACMD_FLAG_DMA_QUEUED = 0x10, + CTL_OOACMD_FLAG_STATUS_QUEUED = 0x20, + CTL_OOACMD_FLAG_STATUS_SENT = 0x40 } ctl_ooa_cmd_flags; struct ctl_ooa_entry { |