Re: [PATCH] thermal: fix race condition when updating cooling device

2016-08-11 Thread Peter Feuerer
20. Juli 2016 11:46 Uhr, "Michele Di Giorgio" schrieb: > When multiple thermal zones are bound to the same cooling device, multiple > kernel threads may want to update the cooling device state by calling > thermal_cdev_update(). Having cdev not protected by a mutex can lead to a race > condition.

Re: [PATCH] thermal: fix race condition when updating cooling device

2016-08-05 Thread Michele DiGiorgio
Hi Eduardo, Rui, On 20/07/16 10:46, Michele Di Giorgio wrote: When multiple thermal zones are bound to the same cooling device, multiple kernel threads may want to update the cooling device state by calling thermal_cdev_update(). Having cdev not protected by a mutex can lead to a race condition.

[PATCH] thermal: fix race condition when updating cooling device

2016-07-20 Thread Michele Di Giorgio
When multiple thermal zones are bound to the same cooling device, multiple kernel threads may want to update the cooling device state by calling thermal_cdev_update(). Having cdev not protected by a mutex can lead to a race condition. Consider the following situation with two kernel threads k1 and

Re: [PATCH] thermal: fix race condition when updating cooling device

2016-06-27 Thread Michele DiGiorgio
Hi Eduardo, Rui, On 06/06/16 13:51, Javi Merino wrote: On Thu, Jun 02, 2016 at 03:25:31PM +0100, Michele Di Giorgio wrote: When multiple thermal zones are bound to the same cooling device, multiple kernel threads may want to update the cooling device state by calling thermal_cdev_update(). Havi

Re: [PATCH] thermal: fix race condition when updating cooling device

2016-06-06 Thread Javi Merino
On Thu, Jun 02, 2016 at 03:25:31PM +0100, Michele Di Giorgio wrote: > When multiple thermal zones are bound to the same cooling device, multiple > kernel threads may want to update the cooling device state by calling > thermal_cdev_update(). Having cdev not protected by a mutex can lead to a race >

[PATCH] thermal: fix race condition when updating cooling device

2016-06-02 Thread Michele Di Giorgio
When multiple thermal zones are bound to the same cooling device, multiple kernel threads may want to update the cooling device state by calling thermal_cdev_update(). Having cdev not protected by a mutex can lead to a race condition. Consider the following situation with two kernel threads k1 and