aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_backend.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2020-05-02 16:54:59 +0000
committerAlexander Motin <mav@FreeBSD.org>2020-05-02 16:54:59 +0000
commit34144c2c7153ceb7deb6732434aaf3de5522e7d0 (patch)
tree9fa9c4d93dc1488c494dd9304e3b2e4072bc22fd /sys/cam/ctl/ctl_backend.c
parent41b23744320e2f661fb4fc5677038ddf337ca453 (diff)
downloadsrc-34144c2c7153ceb7deb6732434aaf3de5522e7d0.tar.gz
src-34144c2c7153ceb7deb6732434aaf3de5522e7d0.zip
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.
Notes
Notes: svn path=/head/; revision=360564
Diffstat (limited to 'sys/cam/ctl/ctl_backend.c')
-rw-r--r--sys/cam/ctl/ctl_backend.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl_backend.c b/sys/cam/ctl/ctl_backend.c
index 0a0645556636..71d4b001e6e6 100644
--- a/sys/cam/ctl/ctl_backend.c
+++ b/sys/cam/ctl/ctl_backend.c
@@ -83,7 +83,6 @@ ctl_backend_register(struct ctl_backend_driver *be)
#ifdef CS_BE_CONFIG_MOVE_DONE_IS_NOT_USED
be->config_move_done = ctl_config_move_done;
#endif
- be->num_luns = 0;
/* Call the backend's initialization routine. */
if (be->init != NULL) {