From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net V2 2/2] virtio-net: refill only when device is up during setting queues Date: Thu, 17 Oct 2013 15:55:58 -0400 (EDT) Message-ID: <20131017.155558.1300032440298974117.davem@davemloft.net> References: <1381807139-3450-1-git-send-email-jasowang@redhat.com> <1381807139-3450-2-git-send-email-jasowang@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1381807139-3450-2-git-send-email-jasowang@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: jasowang@redhat.com Cc: netdev@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, mst@redhat.com List-Id: virtualization@lists.linuxfoundation.org From: Jason Wang Date: Tue, 15 Oct 2013 11:18:59 +0800 > We used to schedule the refill work unconditionally after changing the > number of queues. This may lead an issue if the device is not > up. Since we only try to cancel the work in ndo_stop(), this may cause > the refill work still work after removing the device. Fix this by only > schedule the work when device is up. > > The bug were introduce by commit 9b9cd8024a2882e896c65222aa421d461354e3f2. > (virtio-net: fix the race between channels setting and refill) > > Cc: Rusty Russell > Cc: Michael S. Tsirkin > Signed-off-by: Jason Wang Applied and queued up for -stable, thanks Jason.