Re: [RFC 1/5] user namespaces: Add a user_namespace as creator/owner of uts_namespace

From: Eric W. Biederman
Date: Fri Dec 17 2010 - 17:41:53 EST


Greg KH <greg@xxxxxxxxx> writes:

>> There are also major benefits to have the version of something that is
>> never freed never going away, because it means you can just reference it
>> in code. So while I would be happy to say this is special don't use a
>> kref and roll the reference counting logic by hand, we aren't
>> dynamically allocating init_uts_ns any time soon.
>
> Why have a reference count at all if it's not needed or used here?

We have to reference count every other uts namespace.

Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/