]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
tun: remove unnecessary memory barrier
authorTimur Celik <mail@timurcelik.de>
Mon, 25 Feb 2019 20:13:13 +0000 (21:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 22:27:21 +0000 (14:27 -0800)
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>
drivers/net/tun.c

index d291762b9e9d005f870d84681f6ef713ad124818..53f4f37b0ffd3e92bc742b0ee42948c5bdab0b1e 100644 (file)
@@ -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: