[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACQ1gAgh7QX=cDYsrw9J5qYNKYpgQ841QijA145TDO_Ae5EsQQ@mail.gmail.com>
Date: Fri, 5 Apr 2013 12:59:52 +0200
From: Richard Genoud <richard.genoud@...il.com>
To: Haiyang Zhang <haiyangz@...rosoft.com>
Cc: KY Srinivasan <kys@...rosoft.com>,
"devel@...uxdriverproject.org" <devel@...uxdriverproject.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: hv_netvsc: WARNING in softirq.c
2013/3/19 Richard Genoud <richard.genoud@...il.com>:
> 2013/3/7 Richard Genoud <richard.genoud@...il.com>:
>> 2013/3/6 Haiyang Zhang <haiyangz@...rosoft.com>:
>>> I have found a simple way to reproduce this kind of warning:
>>> 1) reboot the VM (because this warning can be displayed only once.)
>>> 2) login to the host and open the VM [Settings]
>>> 3) Temporarily change the Network adapter's option [Virtual Switch] to "Not connected".
>>> 4) run dmesg, you should see the warning.
>>>
>>> The reason for the warning is -- netif_tx_disable() is called when the NIC
>>> is disconnected. And it's called within irq context. netif_tx_disable()
>>> calls local_bh_enable() which displays warning if in irq.
>>>
>>> The fix is to remove the unnecessary netif_tx_disable() in the netvsc_linkstatus_callback().
>>> I attached a patch. Would you like to test it on your side as well?
>
> I installed the patched kernel today.
> here are the stats of the warings until today :
> kern.log.1:Mar 12 22:32:10 devlabo kernel: [30114.506299]
> ------------[ cut here ]------------
> kern.log.2:Mar 5 22:30:48 devlabo kernel: [10455.098586]
> ------------[ cut here ]------------
> kern.log.2:Mar 6 22:31:25 devlabo kernel: [85552.645480]
> ------------[ cut here ]------------
> kern.log.3:Feb 26 22:35:14 devlabo kernel: [37398.788119]
> ------------[ cut here ]------------
> kern.log.3:Feb 27 22:34:37 devlabo kernel: [10688.187196]
> ------------[ cut here ]------------
> kern.log.4:Feb 22 22:32:22 devlabo kernel: [40399.795364]
> ------------[ cut here ]------------
>
> So, I'll wait for one or two weeks before sending some feedback.
>
Ok, it has been a little bit more than 2 weeks now, and I did not see
this warning any more, just the
"hv_vmbus: child device vmbus_0_8 unregistered" sometimes.
so it seems to be fixed !
Thanks !
Reported-by: Richard Genoud <richard.genoud@...il.com>
Tested-by: Richard Genoud <richard.genoud@...il.com>
Regards,
Richard
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists