Increase device openings to tagged maximum.
authormav <mav@FreeBSD.org>
Sat, 11 Mar 2017 18:46:46 +0000 (18:46 +0000)
committermav <mav@FreeBSD.org>
Sat, 11 Mar 2017 18:46:46 +0000 (18:46 +0000)
commit2e6930f3f83b76549f66dbfafe2a4ad6664f02f7
treecb26da3902d7e80524f93877782ac289c0876f3c
parentd8ab8dba5766058f863334971ac72af5c4c795c6
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.

MFC after: 2 weeks
sys/cam/ctl/scsi_ctl.c