Messages in this thread | | | From | "Luck, Tony" <> | Subject | RE: [PATCH RFC] x86/mce: Move MCE sysfs attributes out of the per-cpu location | Date | Wed, 29 Aug 2012 14:43:12 +0000 |
| |
> Note: I'm not sure if it's ok to change sysfs entries and this does break > userspace tools that depend on the current path for some of these attributes. > So, they will need to be updated to use the new path. However, if we ever get > to a point where cpu0 can be offlined, these tools will need to be updated > anyway (as they mostly hardcode machinecheck0 currently)
Linus' clarified his "never break user space" edict at the kernel summit on Monday. Paraphrasing:
If nobody notices, or nobody complains, then we can make changes. But if anyone does complain, then the patch gets reverted.
So if you want to do this, the right approach would be to change the utilities that use this to look in the new location for these sysfs files first, and fall back to looking in the old per-cpu place.
Next (or in parallel) have the kernel provide both interfaces.
Wait a long[1] time so that most people have updated utilities.
Delete the per-cpu interfaces from the kernel.
Delete the per-cpu references from the utilities.
-Tony
[1] Long enough that there are no complaints. At least a year, probably two or more.
| |