On 18-05-15, 02:30, Rafael J. Wysocki wrote:
Well, if the sysfs directories are removed on every offline, then in particular they will be removed when the device is physically going away, so it should actually work (unless we've broken it already and nobody noticed).
The problem is that the remove routine is called twice and I thought it might not be safe to call it twice. Ofcourse I missed the cpu_offline() checks in the sysfs removal path.
If you want to keep them around after offline, you need to become careful about the "physical hot-remove" case at the same time (and not several patches later).
Sure, will do that today.