]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Cleanup LUN addition/removal.
authorAlexander Motin <mav@FreeBSD.org>
Sat, 2 May 2020 16:54:59 +0000 (16:54 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Sat, 2 May 2020 16:54:59 +0000 (16:54 +0000)
commit34144c2c7153ceb7deb6732434aaf3de5522e7d0
tree9fa9c4d93dc1488c494dd9304e3b2e4072bc22fd
parent41b23744320e2f661fb4fc5677038ddf337ca453
Cleanup LUN addition/removal.

 - Make ctl_add_lun() synchronous.  Asynchronous addition was used by
Copan's proprietary code long ago and never for upstream FreeBSD.
 - Move LUN enable/disable calls from backends to CTL core.
 - Serialize LUN modification and partially removal to avoid double frees.
 - Slightly unify backends code.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.
sys/cam/ctl/ctl.c
sys/cam/ctl/ctl_backend.c
sys/cam/ctl/ctl_backend.h
sys/cam/ctl/ctl_backend_block.c
sys/cam/ctl/ctl_backend_ramdisk.c
sys/cam/ctl/ctl_private.h