summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTimur Celik <mail@timurcelik.de>2019-02-25 21:13:13 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-10 07:17:19 +0100
commite6620defc483b94bae5de691ca5797ae013cdf69 (patch)
treea6af51393abfec160b6b48c1d09f423a5a8cfbe5 /drivers
parent947fc52b6bf470fda416fac80051c1b9d401ac59 (diff)
downloadlinux-rt-e6620defc483b94bae5de691ca5797ae013cdf69.tar.gz
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 <mail@timurcelik.de> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/tun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 27ac30da7e31..f3293355c784 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -2140,7 +2140,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: