diff options
author | mav <mav@FreeBSD.org> | 2014-10-14 12:13:01 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-10-14 12:13:01 +0000 |
commit | 2cb46b9c51ef7ccc7276111aaf286ee0c5248c2d (patch) | |
tree | 0adf4ae47f631e82d0cd4796109d9769d10bf9f5 /sbin | |
parent | 625b27b4d059ba86a666090071c8f12459bf781a (diff) | |
download | FreeBSD-src-2cb46b9c51ef7ccc7276111aaf286ee0c5248c2d.zip FreeBSD-src-2cb46b9c51ef7ccc7276111aaf286ee0c5248c2d.tar.gz |
MFC r271588: Update CAM CCB accounting for the new status quo.
devq_openings counter lost its meaning after allocation queues has gone.
held counter is still meaningful, but problematic to update due to separate
locking of CCB allocation and queuing.
To fix that replace devq_openings counter with allocated counter. held is
now calculated on request as difference between number of allocated, queued
and active CCBs.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/camcontrol/camcontrol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index 12a0e5c..4129cf4 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -4469,9 +4469,9 @@ tagcontrol(struct cam_device *device, int argc, char **argv, fprintf(stdout, "%s", pathstr); fprintf(stdout, "dev_active %d\n", ccb->cgds.dev_active); fprintf(stdout, "%s", pathstr); - fprintf(stdout, "devq_openings %d\n", ccb->cgds.devq_openings); + fprintf(stdout, "allocated %d\n", ccb->cgds.allocated); fprintf(stdout, "%s", pathstr); - fprintf(stdout, "devq_queued %d\n", ccb->cgds.devq_queued); + fprintf(stdout, "queued %d\n", ccb->cgds.queued); fprintf(stdout, "%s", pathstr); fprintf(stdout, "held %d\n", ccb->cgds.held); fprintf(stdout, "%s", pathstr); |