* VLAN creation may lead to deadlock.
@ 2015-02-13 12:02 Ignacy Gawedzki
2015-02-13 19:54 ` Cong Wang
0 siblings, 1 reply; 2+ messages in thread
From: Ignacy Gawedzki @ 2015-02-13 12:02 UTC (permalink / raw)
To: netdev
Hi,
I stumbled upon the following annoying situation: supposing eth0 is some
interface that is currently DOWN, the following command
ip link add link eth0 name eth0.1 up type vlan id 1
never returns and the kernel printks the following lines every few seconds
unregister_netdevice: waiting for eth0.1 to become free. Usage count = 2
I understand that the kernel should prevent me from creating a VLAN interface
that's initially up when loose-binding is off and the master interface is down
(and indeed there is absolutely no problem when loose-binding is on), but the
unregistering of the currently-being-registered device should not block like
that. It appears there are too few dev_puts compared to dev_holds in there.
Regards,
Ignacy
--
Ignacy Gawędzki
R&D Engineer
Green Communications
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: VLAN creation may lead to deadlock.
2015-02-13 12:02 VLAN creation may lead to deadlock Ignacy Gawedzki
@ 2015-02-13 19:54 ` Cong Wang
0 siblings, 0 replies; 2+ messages in thread
From: Cong Wang @ 2015-02-13 19:54 UTC (permalink / raw)
To: Ignacy Gawedzki, netdev
On Fri, Feb 13, 2015 at 4:02 AM, Ignacy Gawedzki
<ignacy.gawedzki@green-communications.fr> wrote:
> Hi,
>
> I stumbled upon the following annoying situation: supposing eth0 is some
> interface that is currently DOWN, the following command
>
> ip link add link eth0 name eth0.1 up type vlan id 1
>
> never returns and the kernel printks the following lines every few seconds
>
> unregister_netdevice: waiting for eth0.1 to become free. Usage count = 2
>
> I understand that the kernel should prevent me from creating a VLAN interface
> that's initially up when loose-binding is off and the master interface is down
> (and indeed there is absolutely no problem when loose-binding is on), but the
> unregistering of the currently-being-registered device should not block like
> that. It appears there are too few dev_puts compared to dev_holds in there.
Good catch! It looks like we forgot to call unregister_vlan_dev(),
I am cooking a patch.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-13 19:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-13 12:02 VLAN creation may lead to deadlock Ignacy Gawedzki
2015-02-13 19:54 ` Cong Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox