All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] net: napi_watchdog() can use napi_schedule_irqoff()
@ 2017-02-21 16:20 Eric Dumazet
  2017-02-21 18:28 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Dumazet @ 2017-02-21 16:20 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

From: Eric Dumazet <edumazet@google.com>

hrtimer handlers run with masked hard IRQ, we can therefore
use napi_schedule_irqoff()

Signed-off-by: Eric Dumazet <edumazet@google.com>
---
 net/core/dev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index 05d19c6acf9460e072195e185b64e19088de13da..304f2deae5f9897e60a79ed8b69d6ef208295ded 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -5089,7 +5089,7 @@ static enum hrtimer_restart napi_watchdog(struct hrtimer *timer)
 
 	napi = container_of(timer, struct napi_struct, timer);
 	if (napi->gro_list)
-		napi_schedule(napi);
+		napi_schedule_irqoff(napi);
 
 	return HRTIMER_NORESTART;
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] net: napi_watchdog() can use napi_schedule_irqoff()
  2017-02-21 16:20 [PATCH net-next] net: napi_watchdog() can use napi_schedule_irqoff() Eric Dumazet
@ 2017-02-21 18:28 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-02-21 18:28 UTC (permalink / raw)
  To: eric.dumazet; +Cc: netdev

From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Tue, 21 Feb 2017 08:20:56 -0800

> From: Eric Dumazet <edumazet@google.com>
> 
> hrtimer handlers run with masked hard IRQ, we can therefore
> use napi_schedule_irqoff()
> 
> Signed-off-by: Eric Dumazet <edumazet@google.com>

Applied, thanks Eric.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-21 18:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-21 16:20 [PATCH net-next] net: napi_watchdog() can use napi_schedule_irqoff() Eric Dumazet
2017-02-21 18:28 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.