From: Timur Celik Date: Mon, 25 Feb 2019 20:13:13 +0000 (+0100) Subject: tun: remove unnecessary memory barrier X-Git-Tag: v4.14.106~103 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a7e2560faea59f89d70123bba4c82cdd162f7c94;p=users%2Fjedix%2Flinux-maple.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 a87450df32306..4227ee33ef195 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -1732,7 +1732,7 @@ static struct sk_buff *tun_ring_recv(struct tun_file *tfile, int noblock, schedule(); } - set_current_state(TASK_RUNNING); + __set_current_state(TASK_RUNNING); remove_wait_queue(&tfile->wq.wait, &wait); out: