Date: Thu, 7 Nov 2019 19:06:19 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r354463 - head/sys/net Message-ID: <201911071906.xA7J6JNF011035@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Thu Nov 7 19:06:18 2019 New Revision: 354463 URL: https://svnweb.freebsd.org/changeset/base/354463 Log: sysctl_rtsock() has all necessary locking and doesn't need Giant to run. While here add description. Modified: head/sys/net/rtsock.c Modified: head/sys/net/rtsock.c ============================================================================== --- head/sys/net/rtsock.c Thu Nov 7 18:29:51 2019 (r354462) +++ head/sys/net/rtsock.c Thu Nov 7 19:06:18 2019 (r354463) @@ -1970,7 +1970,8 @@ sysctl_rtsock(SYSCTL_HANDLER_ARGS) return (error); } -static SYSCTL_NODE(_net, PF_ROUTE, routetable, CTLFLAG_RD, sysctl_rtsock, ""); +static SYSCTL_NODE(_net, PF_ROUTE, routetable, CTLFLAG_RD | CTLFLAG_MPSAFE, + sysctl_rtsock, "Return route tables and interface/address lists"); /* * Definitions of protocols supported in the ROUTE domain.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911071906.xA7J6JNF011035>