Re: [PATCH] PM: hibernate: add sanity check on power_kobj

2021-02-02 Thread Pavel Machek
On Tue 2021-02-02 09:59:11, Abel Wu wrote: > > > > On Feb 1, 2021, at 6:52 PM, Pavel Machek wrote: > > > > On Mon 2021-02-01 02:50:41, Abel Wu wrote: > >> The @power_kobj is initialized in pm_init() which is the same > >> initcall level as pm_disk_init(). Although this dependency is > >> guaran

Re: [PATCH] PM: hibernate: add sanity check on power_kobj

2021-02-01 Thread Abel Wu
> On Feb 1, 2021, at 6:52 PM, Pavel Machek wrote: > > On Mon 2021-02-01 02:50:41, Abel Wu wrote: >> The @power_kobj is initialized in pm_init() which is the same >> initcall level as pm_disk_init(). Although this dependency is >> guaranteed based on the current initcall serial execution model,

Re: [PATCH] PM: hibernate: add sanity check on power_kobj

2021-02-01 Thread Pavel Machek
On Mon 2021-02-01 02:50:41, Abel Wu wrote: > The @power_kobj is initialized in pm_init() which is the same > initcall level as pm_disk_init(). Although this dependency is > guaranteed based on the current initcall serial execution model, > it would still be better do a cost-less sanity check to avo

[PATCH] PM: hibernate: add sanity check on power_kobj

2021-01-31 Thread Abel Wu
The @power_kobj is initialized in pm_init() which is the same initcall level as pm_disk_init(). Although this dependency is guaranteed based on the current initcall serial execution model, it would still be better do a cost-less sanity check to avoid oops once the dependency is broken. Signed-off-