Commit a7e2560f authored by Timur Celik's avatar Timur Celik Committed by Greg Kroah-Hartman

tun: remove unnecessary memory barrier

[ Upstream commit ecef67cb ]

Replace set_current_state with __set_current_state since no memory
barrier is needed at this point.
Signed-off-by: default avatarTimur Celik <mail@timurcelik.de>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 32869c80
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment