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

Commit e6620def authored by Timur Celik's avatar Timur Celik Committed by Greg Kroah-Hartman
Browse files

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: 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 947fc52b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: