summaryrefslogtreecommitdiffstats
path: root/sys/cam/ctl/ctl_private.h
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2017-02-07 01:55:48 +0000
committermav <mav@FreeBSD.org>2017-02-07 01:55:48 +0000
commitfae7cb03d3dce923679fc72da3d94e87f850975c (patch)
tree870024bc83bdbdc7900bc5b9789cbfc2c96303ac /sys/cam/ctl/ctl_private.h
parentcaf1f9a6d9a076ea4c7555a62dd2cc637f5ac7a8 (diff)
downloadFreeBSD-src-fae7cb03d3dce923679fc72da3d94e87f850975c.zip
FreeBSD-src-fae7cb03d3dce923679fc72da3d94e87f850975c.tar.gz
MFC r312603: Add initial support for CTL module unloading.
It is only a first step and not perfect, but better then nothing. The main blocker is CAM target frontend, that can not be unloaded, since CAM does not have mechanism to unregister periph driver now.
Diffstat (limited to 'sys/cam/ctl/ctl_private.h')
-rw-r--r--sys/cam/ctl/ctl_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl_private.h b/sys/cam/ctl/ctl_private.h
index 3f46769..40f0e61 100644
--- a/sys/cam/ctl/ctl_private.h
+++ b/sys/cam/ctl/ctl_private.h
@@ -470,7 +470,10 @@ struct ctl_softc {
STAILQ_HEAD(, ctl_backend_driver) be_list;
struct uma_zone *io_zone;
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;
struct mtx tpc_lock;
OpenPOWER on IntegriCloud