]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r313854, r313963: Change the way MaxCmdSN is used.
authormav <mav@FreeBSD.org>
Fri, 3 Mar 2017 06:06:27 +0000 (06:06 +0000)
committermav <mav@FreeBSD.org>
Fri, 3 Mar 2017 06:06:27 +0000 (06:06 +0000)
commit16ccfd4c1ce12408b87af2134adaf98ec62866b5
tree6015603104db337dbd026e3edd98bb98be7d885d
parent4e3f624a33579296dccb61beaebc3a2ae95df6a7
MFC r313854, r313963: Change the way MaxCmdSN is used.

Before this change MaxCmdSN was reported as CmdSN + delta, that made it
limit number of requests in transmission from the initiator to target,
that was pretty useless.  After this change MaxCmdSN limits number of
requests queued to CTL, i.e. maximal queue depth for the initiator.
The default limit is 256 outstanding requests per initiator at a time.

This code uses existing cs_outstanding_ctl_pdus counter to track queue
depth.  It's semantics doen't perfectly match, but close enough to not
add another counter.  Just don't set the maxtags below 2.
share/man/man4/ctl.4
sys/cam/ctl/ctl_frontend_iscsi.c