Improve use of I/O's private area.
authormav <mav@FreeBSD.org>
Thu, 29 Dec 2016 15:09:34 +0000 (15:09 +0000)
committermav <mav@FreeBSD.org>
Thu, 29 Dec 2016 15:09:34 +0000 (15:09 +0000)
commit6c814bf3ccab177ae33efe5482ac1250364de0bd
tree87e53ed2ed6eb74d74a24026070c22a91f4cbe86
parent4ba20ffeffa70c3490c28b5987094f2698d88860
Improve use of I/O's private area.

 - Since I/Os are allocates from per-port pools, make allocations store
pointer to CTL softc there, and use it where needed instead of global.
 - Created bunch of helper macros to access LUN, port and CTL softc.

MFC after:  2 weeks
sys/cam/ctl/ctl.c
sys/cam/ctl/ctl_backend_block.c
sys/cam/ctl/ctl_backend_ramdisk.c
sys/cam/ctl/ctl_error.c
sys/cam/ctl/ctl_io.h
sys/cam/ctl/ctl_tpc.c