]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r311787: Allocate memory for prevent flags only for removable LUs.
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 26 Jan 2017 20:57:48 +0000 (20:57 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 26 Jan 2017 20:57:48 +0000 (20:57 +0000)
commit9f8a14506eaeb7796f11f9d09f909c2a3917fe0b
tree8ea2cd86077e3705db58e811f2d6000cfc7755fc
parent76548c410bf811625689999f0edeef83ed2d6873
MFC r311787: Allocate memory for prevent flags only for removable LUs.

This array takes 64KB of RAM now, that was more then half of struct ctl_lun
size.  If at some point we support more ports, this may need another tune.

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