[PATCH 4.9 26/96] tun: remove unnecessary memory barrier

From: Greg Kroah-Hartman
Date: Tue Mar 12 2019 - 13:27:26 EST


4.9-stable review patch. If anyone has any objections, please let me know.

------------------

From: Timur Celik <mail@xxxxxxxxxxxxx>

[ Upstream commit ecef67cb10db7b83b3b71c61dbb29aa070ab0112 ]

Replace set_current_state with __set_current_state since no memory
barrier is needed at this point.

Signed-off-by: Timur Celik <mail@xxxxxxxxxxxxx>
Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
drivers/net/tun.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -1489,7 +1489,7 @@ static struct sk_buff *tun_ring_recv(str
schedule();
}

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

out: