summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2016-08-24 07:50:28 +0000
committermav <mav@FreeBSD.org>2016-08-24 07:50:28 +0000
commitb8dd3c9356dd664db6064a1cc987aa9036f17282 (patch)
tree5151665dfe2636989177ce83076cda1694867b2f /sys
parent8b080b5d18b14e2d595f39d28450f52328cdb834 (diff)
downloadFreeBSD-src-b8dd3c9356dd664db6064a1cc987aa9036f17282.zip
FreeBSD-src-b8dd3c9356dd664db6064a1cc987aa9036f17282.tar.gz
Fix HA mode configuration on FreeBSD 10.x.
This is direct commit, compensating CTLFLAG_RDTUN difference between FreeBSD 10.x and 11.x branches.
Diffstat (limited to 'sys')
-rw-r--r--sys/cam/ctl/ctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
index 5455eea..8ec048b 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -1818,6 +1818,7 @@ ctl_init(void)
NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
softc->flags = 0;
+ TUNABLE_INT_FETCH("kern.cam.ctl.ha_mode", (int *)&softc->ha_mode);
SYSCTL_ADD_INT(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree),
OID_AUTO, "ha_mode", CTLFLAG_RDTUN, (int *)&softc->ha_mode, 0,
"HA mode (0 - act/stby, 1 - serialize only, 2 - xfer)");
@@ -1827,6 +1828,7 @@ ctl_init(void)
* figured out through the slot the controller is in. Although it
* is an active/active system, someone has to be in charge.
*/
+ TUNABLE_INT_FETCH("kern.cam.ctl.ha_id", &softc->ha_id);
SYSCTL_ADD_INT(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree),
OID_AUTO, "ha_id", CTLFLAG_RDTUN, &softc->ha_id, 0,
"HA head ID (0 - no HA)");
OpenPOWER on IntegriCloud