Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ecef67cb authored by Timur Celik's avatar Timur Celik Committed by David S. Miller
Browse files

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: default avatarTimur Celik <mail@timurcelik.de>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ff7b11aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: