]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r271588: Update CAM CCB accounting for the new status quo.
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 14 Oct 2014 12:13:01 +0000 (12:13 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 14 Oct 2014 12:13:01 +0000 (12:13 +0000)
commit8e57c985ec8fc2f6d42b9a12237cbea3dad79951
tree0adf4ae47f631e82d0cd4796109d9769d10bf9f5
parentc07e0cbe6eaff6a60449573ea09f491b86e37955
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273078 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/camcontrol/camcontrol.c
sys/cam/cam_ccb.h
sys/cam/cam_queue.c
sys/cam/cam_queue.h
sys/cam/cam_xpt.c