]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r315084: Increase device openings to tagged maximum.
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 25 Mar 2017 11:45:19 +0000 (11:45 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 25 Mar 2017 11:45:19 +0000 (11:45 +0000)
commit76e99516cef8d90f26b44fce356daa9f9d7d2436
tree3538f8ebc88070cbca5aa5c71c33e30267608d5b
parentf974c11c45ebac8ad6e538a176353e3eebfbfbcc
MFC r315084: Increase device openings to tagged maximum.

Some SIMs report much less untagged device openings then tagged ones.
Target mode devices are not handled by regular probing routines, and so
there is nothing to increase queue size for them to the SIM's maximum.
To fix that resize the queue explicitly on ctl periph registration.
This radically improves performance of mpt(4) in target mode.

Also fetch and report device queue statistics in `ctladm dumpstructs`,
since regular way of `camcontrol tags` is not usable in target mode.

git-svn-id: svn://svn.freebsd.org/base/stable/10@315939 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cam/ctl/scsi_ctl.c