Mark Brown <[EMAIL PROTECTED]> : [...] > Prior to waiting dev_close() clears __LINK_STATE_START which will cause > netif_rx_schedule_prep() to return false. > As far as I can see that should prevent the interrupt handler scheduling > any further poll() calls?
netif_rx_schedule_prep return netif_running(dev) && dev_close clear_bit(__LINK_STATE_START, &dev->state); dev_close smp_mb__after_clear_bit(); /* Commit netif_running(). */ dev_close while (test_bit(__LINK_STATE_RX_SCHED, &dev->state)) { dev_close /* No hurry. */ dev_close msleep(1); dev_close } dev_close netif_rx_schedule_prep !test_and_set_bit(__LINK_STATE_RX_SCHED, &dev->state); -- Ueimor - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html