git: 35efbedc9853 - main - fxp: Mark sysctls with CTLFLAG_MPSAFE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Dec 2021 02:16:32 UTC
The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=35efbedc98539fa655c3fb8df146fb6f7784df57 commit 35efbedc98539fa655c3fb8df146fb6f7784df57 Author: Alexander Motin <mav@FreeBSD.org> AuthorDate: 2021-12-10 02:16:16 +0000 Commit: Alexander Motin <mav@FreeBSD.org> CommitDate: 2021-12-10 02:16:16 +0000 fxp: Mark sysctls with CTLFLAG_MPSAFE. MFC after: 2 weeks --- sys/dev/fxp/if_fxp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 6def42343804..a5cd909408d7 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -3149,11 +3149,11 @@ fxp_sysctl_node(struct fxp_softc *sc) child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->dev)); SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_delay", - CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, + CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, &sc->tunable_int_delay, 0, sysctl_hw_fxp_int_delay, "I", "FXP driver receive interrupt microcode bundling delay"); SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "bundle_max", - CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, + CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, &sc->tunable_bundle_max, 0, sysctl_hw_fxp_bundle_max, "I", "FXP driver receive interrupt microcode bundle size limit"); SYSCTL_ADD_INT(ctx, child,OID_AUTO, "rnr", CTLFLAG_RD, &sc->rnr, 0,