[PATCH 12/15] driver core: Implement tagged directory support for device classes.
Eric W. Biederman
ebiederm at xmission.com
Fri Jul 4 15:00:36 PDT 2008
Tejun Heo <htejun at gmail.com> writes:
> Yeah, it seems we should agree to disagree here. I think using callback
> for static values is a really bad idea. It obfuscates the code and
> opens up a big hole for awful misuses. Greg, what do you think?
The misuse argument is small because currently all users must be compiled
into the kernel and must add to the static enumeration. I'm afraid we
are making the facility over general for the problem at hand.
> As we're very close to rc1 window, I think we can work out a solution
> here. The reason why I nack'd was because the change wouldn't take too
> much effort and I thought it could be done before -rc1. Unless you
> disagree with making tags static values, I'll try to write up a patch to
> do so. If you (and Greg) think the callback interface is better, we can
> merge the code as-is and update (or not) later.
Making a change and pushing down into the patches is much more time intensive
then I would like. The last round of changes simple as they were took something
between 16 and 30 hours, and has left me sapped. Keeping all of the other
pieces in flight in all of the other patches so I can't just focus on the
change at hand is what makes it difficult at this point.
Adding an additional patch on top isn't too bad, but my creativity is sapped on
this right now. I agree that a function called device_rename isn't the best
possible name when we are changing tags, but I can't think of anything that
I know in the users that the tags are already quite static and that I call
kobject_rename in the one case where they change (which is a significant
exception). So that part doesn't concern me as I have not intention of using
the interface like that. Ultimately I don't care as long as we have code
More information about the Containers