Re: netconsole hangs w/ alt-sysrq-t

From: Jeff Moyer
Date: Tue Jun 29 2004 - 07:40:33 EST



[snip]

@@ -70,9 +73,12 @@
np->dev->poll_controller(np->dev);

/* If scheduling is stopped, tickle NAPI bits */
- if(trapped && np->dev->poll &&
- test_bit(__LINK_STATE_RX_SCHED, &np->dev->state))
+ if (np->dev->poll &&
+ test_bit(__LINK_STATE_RX_SCHED, &np->dev->state)) {
+ np->dev->netpoll_rx |= NETPOLL_RX_DROP;
np->dev->poll(np->dev, &budget);
+ np->dev->netpoll_rx &= ~NETPOLL_RX_DROP;
+ }
zap_completion_queue();
}

Silly me. This still needs to set trapped (and still needs more thinking
about smp issues).

-Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/