]> git.baikalelectronics.ru Git - kernel.git/commit
net: busy-poll: remove need_resched() from sk_can_busy_loop()
authorEric Dumazet <edumazet@google.com>
Tue, 15 Nov 2016 18:15:12 +0000 (10:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 18:40:58 +0000 (13:40 -0500)
commit7fb458af7d25975d2c60235b372a96f79ba62aaa
tree1d3feac3e20855761e2e0b99105908980b4c18ed
parent63fbe3f178104c63cafe713510a6718f1f159356
net: busy-poll: remove need_resched() from sk_can_busy_loop()

Now sk_busy_loop() can schedule by itself, we can remove
need_resched() check from sk_can_busy_loop()

Also add a const to its struct sock parameter.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Cc: Adam Belay <abelay@google.com>
Cc: Tariq Toukan <tariqt@mellanox.com>
Cc: Yuval Mintz <Yuval.Mintz@cavium.com>
Cc: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/busy_poll.h