OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff7b11a
)
tun: remove unnecessary memory barrier
author
Timur Celik
<mail@timurcelik.de>
Mon, 25 Feb 2019 20:13:13 +0000
(21:13 +0100)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/tun.c
b/drivers/net/tun.c
index
d291762
..
53f4f37
100644
(file)
--- a/
drivers/net/tun.c
+++ b/
drivers/net/tun.c
@@
-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: