svn commit: r276341 - head/sys/kern

Gleb Smirnoff glebius at FreeBSD.org
Tue Dec 30 22:12:47 UTC 2014


On Tue, Dec 30, 2014 at 09:22:27PM +0100, Mateusz Guzik wrote:
M> On Tue, Dec 30, 2014 at 11:06:01PM +0300, Gleb Smirnoff wrote:
M> > On Sun, Dec 28, 2014 at 07:24:02PM +0000, Mateusz Guzik wrote:
M> > M> Author: mjg
M> > M> Date: Sun Dec 28 19:24:01 2014
M> > M> New Revision: 276341
M> > M> URL: https://svnweb.freebsd.org/changeset/base/276341
M> > M> 
M> > M> Log:
M> > M>   sysctl: don't modify oid_running for static nodes
M> > M>   
M> > M>   It is necessary to prevent nodes from being destroyed while used, but static
M> > M>   ones cannot be destroyed.
M> > 
M> > What about nodes that go away on kernel module unload? Not sure
M> > they were protected properly before your commit, though :)
M> > 
M> 
M> They are not static.

I don't see how they can get CTLFLAG_DYN. Look for any (un)loadable
modules as an example, e.g. aio(4) implemented in vfs_aio.c. How its
sysctls get CTLFLAG_DYN?

-- 
Totus tuus, Glebius.


More information about the svn-src-head mailing list