Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/ctl/ctl_ha.c
Show All 12 Lines | |||||
printf("error creating CTL HA connection thread!\n"); | printf("error creating CTL HA connection thread!\n"); | ||||
mtx_destroy(&softc->ha_lock); | mtx_destroy(&softc->ha_lock); | ||||
return (CTL_HA_STATUS_ERROR); | return (CTL_HA_STATUS_ERROR); | ||||
} | } | ||||
softc->ha_shutdown_eh = EVENTHANDLER_REGISTER(shutdown_pre_sync, | softc->ha_shutdown_eh = EVENTHANDLER_REGISTER(shutdown_pre_sync, | ||||
ctl_ha_msg_shutdown, ctl_softc, SHUTDOWN_PRI_FIRST); | ctl_ha_msg_shutdown, ctl_softc, SHUTDOWN_PRI_FIRST); | ||||
SYSCTL_ADD_PROC(&ctl_softc->sysctl_ctx, | SYSCTL_ADD_PROC(&ctl_softc->sysctl_ctx, | ||||
SYSCTL_CHILDREN(ctl_softc->sysctl_tree), | SYSCTL_CHILDREN(ctl_softc->sysctl_tree), | ||||
OID_AUTO, "ha_peer", CTLTYPE_STRING | CTLFLAG_RWTUN, | OID_AUTO, "ha_peer", | ||||
CTLTYPE_STRING | CTLFLAG_RWTUN | CTLFLAG_NEEDGIANT, | |||||
softc, 0, ctl_ha_peer_sysctl, "A", "HA peer connection method"); | softc, 0, ctl_ha_peer_sysctl, "A", "HA peer connection method"); | ||||
if (ctl_ha_msg_register(CTL_HA_CHAN_DATA, ctl_dt_event_handler) | if (ctl_ha_msg_register(CTL_HA_CHAN_DATA, ctl_dt_event_handler) | ||||
!= CTL_HA_STATUS_SUCCESS) { | != CTL_HA_STATUS_SUCCESS) { | ||||
printf("%s: ctl_ha_msg_register failed.\n", __func__); | printf("%s: ctl_ha_msg_register failed.\n", __func__); | ||||
} | } | ||||
return (CTL_HA_STATUS_SUCCESS); | return (CTL_HA_STATUS_SUCCESS); | ||||
Show All 12 Lines |