From: Jason Wang Date: Tue, 15 Oct 2013 03:18:59 +0000 (+0800) Subject: virtio-net: refill only when device is up during setting queues X-Git-Tag: v3.12-rc7~20^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35ed159bfd96a7547ec277ed8b550c7cbd9841b6;p=pandora-kernel.git virtio-net: refill only when device is up during setting queues 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed