From: Timur Celik Date: Mon, 25 Feb 2019 20:13:13 +0000 (+0100) Subject: tun: remove unnecessary memory barrier X-Git-Tag: v4.20.15~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06e391edd5d03b4598d9c08ffcf0e5a4ddde9a49;p=thirdparty%2Fkernel%2Fstable.git tun: remove unnecessary memory barrier [ Upstream commit ecef67cb10db7b83b3b71c61dbb29aa070ab0112 ] Replace set_current_state with __set_current_state since no memory barrier is needed at this point. Signed-off-by: Timur Celik Reviewed-by: Eric Dumazet Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 05728e583d90c..efc08dad3a1bf 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -2165,7 +2165,7 @@ static void *tun_ring_recv(struct tun_file *tfile, int noblock, int *err) schedule(); } - set_current_state(TASK_RUNNING); + __set_current_state(TASK_RUNNING); remove_wait_queue(&tfile->wq.wait, &wait); out: