aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_private.h
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_private.h
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_private.h')
-rw-r--r--sys/cam/ctl/ctl_private.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/cam/ctl/ctl_private.h b/sys/cam/ctl/ctl_private.h
index 6f3848dc0faa..5dd82d3032ac 100644
--- a/sys/cam/ctl/ctl_private.h
+++ b/sys/cam/ctl/ctl_private.h
@@ -147,7 +147,6 @@ typedef enum {
CTL_LUN_RESERVED = 0x002,
CTL_LUN_INVALID = 0x004,
CTL_LUN_DISABLED = 0x008,
- CTL_LUN_MALLOCED = 0x010,
CTL_LUN_STOPPED = 0x020,
CTL_LUN_NO_MEDIA = 0x040,
CTL_LUN_EJECTED = 0x080,
@@ -458,7 +457,6 @@ struct ctl_softc {
struct ctl_lun **ctl_luns;
uint32_t *ctl_port_mask;
STAILQ_HEAD(, ctl_lun) lun_list;
- STAILQ_HEAD(, ctl_be_lun) pending_lun_queue;
uint32_t num_frontends;
STAILQ_HEAD(, ctl_frontend) fe_list;
uint32_t num_ports;
@@ -470,7 +468,6 @@ struct ctl_softc {
uint32_t cur_pool_id;
int shutdown;
struct ctl_thread threads[CTL_MAX_THREADS];
- struct thread *lun_thread;
struct thread *thresh_thread;
TAILQ_HEAD(tpc_tokens, tpc_token) tpc_tokens;
struct callout tpc_timeout;