summaryrefslogtreecommitdiff
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
authorTimur Celik <mail@timurcelik.de>2019-02-25 21:13:13 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-25 14:27:21 -0800
commitecef67cb10db7b83b3b71c61dbb29aa070ab0112 (patch)
treefec064e95fcb4844bc09cc530fb46ca7664fcfa9 /drivers/net/tun.c
parentff7b11aa481f682e0e9711abfeb7d03f5cd612bf (diff)
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 <mail@timurcelik.de> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
-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 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: