Messages in this thread | | | From | Logan Gunthorpe <> | Date | Sat, 11 Feb 2017 22:42:34 -0700 | Subject | Re: [PATCH] device-dax: don't set kobj parent during cdev init |
| |
On 11/02/17 11:58 AM, Dan Williams wrote: > Also when using an embedded cdev how would you recommend avoiding this problem?
I don't know. Hopefully, Greg has a good idea. But it sounds like a general problem that a lot of cdev's actually suffer from without realizing. Perhaps we need a more general solution. Some way for the cdev to reference its containing structure in a way that it's designed for such that anyone writing a driver will do the right thing without needing to dive into the kobjects.
Logan
| |