Skip to content

Commit

Permalink
tun: remove unnecessary memory barrier
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
clktmr authored and davem330 committed Feb 25, 2019
1 parent ff7b11a commit ecef67c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ecef67c

Please sign in to comment.