Skip to contentSkip to conversation

netif_poll_disable() hangs

DISCUSSION Andrew Morton 2 participants 4 messages Sep 8, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Very simple:

	ifup eth0
	ifdown eth0
	ifup eth0
	ifdown eth0	<- hangs in dev_close -> netif_poll_disable()

Because the first close sets __LINK_STATE_RX_SCHED and nothing ever clears it.

#1 lore raw
Quoted 10 lines · Andrew Morton

Very simple:

	ifup eth0
	ifdown eth0
	ifup eth0
	ifdown eth0	<- hangs in dev_close -> netif_poll_disable()

Because the first close sets __LINK_STATE_RX_SCHED and nothing ever clears it.

Weird. Looking at older 2.4 and 2.6, the bit has always been set that way.

process_backlog() has always been the only site that ever clears that bit... maybe process_backlog() is called when interface is up'd, which is why it worked before (and should be working now)?

Jeff

#2 lore raw
Quoted 10 lines · Jeff Garzik
Quoted 8 lines · Andrew Morton

Very simple:

	ifup eth0
	ifdown eth0
	ifup eth0
	ifdown eth0	<- hangs in dev_close -> netif_poll_disable()
Quoted 5 lines
Quoted 2 lines

Because the first close sets __LINK_STATE_RX_SCHED and nothing ever clears it.

Weird. Looking at older 2.4 and 2.6, the bit has always been set that way.

2.4 does test_bit, 2.6 does test_and_set_bit.

#3 lore raw
In reply to Andrew Morton
Quoted 10 lines · Andrew Morton

Very simple:

	ifup eth0
	ifdown eth0
	ifup eth0
	ifdown eth0	<- hangs in dev_close -> netif_poll_disable()

Because the first close sets __LINK_STATE_RX_SCHED and nothing ever clears it.

Thanks, fix patch just sent.