Skip to content

Commit ecef67c

Browse files
clktmrdavem330
authored andcommitted
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>
1 parent ff7b11a commit ecef67c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/tun.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2185,7 +2185,7 @@ static void *tun_ring_recv(struct tun_file *tfile, int noblock, int *err)
21852185
schedule();
21862186
}
21872187

2188-
set_current_state(TASK_RUNNING);
2188+
__set_current_state(TASK_RUNNING);
21892189
remove_wait_queue(&tfile->wq.wait, &wait);
21902190

21912191
out:

0 commit comments

Comments
 (0)