Re: [PATCH] livepatch: add locking to force and signal functions

2017-12-20 Thread Miroslav Benes
On Wed, 20 Dec 2017, Petr Mladek wrote: > On Wed 2017-12-20 10:28:07, Miroslav Benes wrote: > > klp_send_signals() and klp_force_transition() do not acquire klp_mutex, > > because it seemed to be superfluous. A potential race in > > klp_send_signals() was harmless and there was nothing in > > klp_

Re: [PATCH] livepatch: add locking to force and signal functions

2017-12-20 Thread Petr Mladek
On Wed 2017-12-20 10:28:07, Miroslav Benes wrote: > klp_send_signals() and klp_force_transition() do not acquire klp_mutex, > because it seemed to be superfluous. A potential race in > klp_send_signals() was harmless and there was nothing in > klp_force_transition() which needed to be synchronized.

[PATCH] livepatch: add locking to force and signal functions

2017-12-20 Thread Miroslav Benes
klp_send_signals() and klp_force_transition() do not acquire klp_mutex, because it seemed to be superfluous. A potential race in klp_send_signals() was harmless and there was nothing in klp_force_transition() which needed to be synchronized. That changed with the addition of klp_forced variable dur