Re: [PATCH 1/1 net-next] irda: replace current->state by set_current_state()

From: David Miller
Date: Mon Feb 23 2015 - 17:21:32 EST

From: Fabian Frederick <fabf@xxxxxxxxx>
Date: Mon, 23 Feb 2015 18:38:24 +0100

> Use helper functions to access current->state.
> Direct assignments are prone to races and therefore buggy.
> current->state = TASK_RUNNING can be 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