Thread (11 messages) 11 messages, 6 authors, 2015-02-22

Re: [PATCH 6/7 linux-next] wan: cosa: replace current->state by set_current_state()

flat view

From: David Miller <davem@davemloft.net>
Date: 2015-02-22 20:25:13
Also in: lkml

From: Fabian Frederick <redacted>
Date: Fri, 20 Feb 2015 19:12:56 +0100
Use helper functions to access current->state.
Direct assignments are prone to races and therefore buggy.

current->state = TASK_RUNNING is replaced by __set_current_state()

Thanks to Peter Zijlstra for the exact definition of the problem.

Suggested-By: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Fabian Frederick <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help