git: 2f1a46d12b03 - main - netgraph: Remove CTLFLAG_NEEDGIANT from sysctl.

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Mon, 27 Dec 2021 00:43:41 UTC
The branch main has been updated by mav:

URL: https://cgit.FreeBSD.org/src/commit/?id=2f1a46d12b035084cf2836043f8c1f3f23ede9c5

commit 2f1a46d12b035084cf2836043f8c1f3f23ede9c5
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2021-12-27 00:42:53 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2021-12-27 00:42:53 +0000

    netgraph: Remove CTLFLAG_NEEDGIANT from sysctl.
    
    MFC after:      2 weeks
---
 sys/netgraph/ng_base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index 0d64000ee1f5..0a07860a4481 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -3390,7 +3390,7 @@ sysctl_debug_ng_dump_items(SYSCTL_HANDLER_ARGS)
 }
 
 SYSCTL_PROC(_debug, OID_AUTO, ng_dump_items,
-    CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, 0, sizeof(int),
+    CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, 0, sizeof(int),
     sysctl_debug_ng_dump_items, "I",
     "Number of allocated items");
 #endif	/* NETGRAPH_DEBUG */