]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r275458:
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 18 Dec 2014 08:32:06 +0000 (08:32 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 18 Dec 2014 08:32:06 +0000 (08:32 +0000)
commitc290790c93032f1a5febf870c35b9b9f2c84d1e2
treed61ddc3414e7a1abf3485a49515b84ed269b32c5
parent872d4e0691cdaf25cf54026a7ba1d698615ea9ab
MFC r275458:
Do not pre-allocate UNIT ATTENTIONs storage for every possible initiator.

Abusing ability of major UAs cover minor ones we may not account UAs for
inactive ports.  Allocate UAs storage for port and start accounting only
after some initiator from that port fetched its first POWER ON OCCURRED.

This reduces per-LUN CTL memory usage from >1MB to less then 100K.

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