Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nfsserver/nfs_fha_new.c
Show All 12 Lines | |||||
softc->pool = &nfsrvd_pool; | softc->pool = &nfsrvd_pool; | ||||
/* | /* | ||||
* Initialize the sysctl context list for the fha module. | * Initialize the sysctl context list for the fha module. | ||||
*/ | */ | ||||
sysctl_ctx_init(&softc->sysctl_ctx); | sysctl_ctx_init(&softc->sysctl_ctx); | ||||
softc->sysctl_tree = SYSCTL_ADD_NODE(&softc->sysctl_ctx, | softc->sysctl_tree = SYSCTL_ADD_NODE(&softc->sysctl_ctx, | ||||
SYSCTL_STATIC_CHILDREN(_vfs_nfsd), OID_AUTO, "fha", CTLFLAG_RD, | SYSCTL_STATIC_CHILDREN(_vfs_nfsd), OID_AUTO, "fha", | ||||
0, "NFS File Handle Affinity (FHA)"); | CTLFLAG_RD | CTLFLAG_MPSAFE, 0, "NFS File Handle Affinity (FHA)"); | ||||
if (softc->sysctl_tree == NULL) { | if (softc->sysctl_tree == NULL) { | ||||
printf("%s: unable to allocate sysctl tree\n", __func__); | printf("%s: unable to allocate sysctl tree\n", __func__); | ||||
return; | return; | ||||
} | } | ||||
fha_init(softc); | fha_init(softc); | ||||
} | } | ||||
Show All 12 Lines |