[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1849761882.58117.1424458263796.open-xchange@webmail.nmp.proximus.be>
Date: Fri, 20 Feb 2015 19:51:03 +0100 (CET)
From: Fabian Frederick <fabf@...net.be>
To: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
linux-kernel@...r.kernel.org
Cc: Ingo Molnar <mingo@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
netdev@...r.kernel.org, "Jan \"Yenya\" Kasprzak" <kas@...muni.cz>
Subject: Re: [PATCH 6/7 linux-next] wan: cosa: replace current->state by
set_current_state()
> On 20 February 2015 at 19:34 Sergei Shtylyov
> <sergei.shtylyov@...entembedded.com> wrote:
>
>
> Hello.
>
> On 02/20/2015 09:12 PM, Fabian Frederick wrote:
>
> > 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()
>
> You sometimes use __set_current_state() and sometimes set_current_state().
Hello Sergei,
Peter suggested to use __set_current_state() for TASK_RUNNING :
http://marc.info/?l=linux-kernel&m=142442259719216&w=2
Regards,
Fabian
>
> > Thanks to Peter Zijlstra for the exact definition of the problem.
>
> > Suggested-By: Peter Zijlstra <peterz@...radead.org>
> > Signed-off-by: Fabian Frederick <fabf@...net.be>
>
> [...]
>
> WBR, Sergei
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists