[Devel] [RFC] NETNS_REFCNT_DEBUG define

Konstantin Khorenko khorenko at virtuozzo.com
Tue Nov 24 00:55:33 PST 2015


On 11/23/2015 07:43 PM, Stanislav Kinsburskiy wrote:
> Hello gentlemen,
>
> There was NETNS_REFCNT_DEBUG debug introduced in past to track down
> situations, when network namespace is being hold (not referenced;
> another ref count is used) by various objects, so, on net namespace
> release such situations with leaked network objects can be reported.
> We don't have this option enabled.
> And thus there are two options: either enable it, or clean out all the
> references to it's functions, to they won't obfuscate the reader.
> I personally would prefer the former.

Well, i don't like the latter option anyway.

i have no objections enabling NETNS_REFCNT_DEBUG in _debug_ kernels only,
so please send a patch.

The only extra thing: please make it not only print the err message, but also taint kernel,
so our autotests could catch this.

If anybody objects, please let us know.

--
Konstantin


More information about the Devel mailing list