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

From: David Miller
Date: Sun Feb 22 2015 - 15:25:18 EST

From: Fabian Frederick <fabf@xxxxxxxxx>
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@xxxxxxxxxxxxx>
> Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx>

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at