From: Timur Celik Date: Mon, 25 Feb 2019 20:13:13 +0000 (+0100) Subject: tun: remove unnecessary memory barrier X-Git-Tag: v5.0~4^2~30 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ecef67cb10db7b83b3b71c61dbb29aa070ab0112;p=users%2Fwilly%2Flinux.git tun: remove unnecessary memory barrier 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 --- diff --git a/drivers/net/tun.c b/drivers/net/tun.c index d291762b9e9d..53f4f37b0ffd 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -2185,7 +2185,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: