Re: [PATCH V2] thermal: Fix locking in cooling device sysfs update cur_state

2019-01-02 Thread Zhang Rui
On δΈ‰, 2019-01-02 at 21:29 -0500, Thara Gopinath wrote: > On 11/27/2018 05:43 PM, Thara Gopinath wrote: > > > > Sysfs interface to update cooling device cur_state does not > > currently holding cooling device lock sometimes leading to > > stale values in cur_state if getting updated simultanelously

Re: [PATCH V2] thermal: Fix locking in cooling device sysfs update cur_state

2019-01-02 Thread Thara Gopinath
On 11/27/2018 05:43 PM, Thara Gopinath wrote: > Sysfs interface to update cooling device cur_state does not > currently holding cooling device lock sometimes leading to > stale values in cur_state if getting updated simultanelously > from user space and thermal framework. Adding the proper locking

[PATCH V2] thermal: Fix locking in cooling device sysfs update cur_state

2018-11-27 Thread Thara Gopinath
Sysfs interface to update cooling device cur_state does not currently holding cooling device lock sometimes leading to stale values in cur_state if getting updated simultanelously from user space and thermal framework. Adding the proper locking code fixes this issue. Signed-off-by: Thara Gopinath