提交 6ea0a467 编写于 作者: A Anthony Liguori 提交者: Linus Torvalds

virtio_net: remove overzealous printk

The 'disable_cb' is really just a hint and as such, it's possible for more
work to get queued up while callbacks are disabled.  Under stress with an
SMP guest, this printk triggers very frequently.  There is no race here, this
is how things are designed to work so let's just remove the printk.
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Acked-by: NRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 099c736a
...@@ -284,7 +284,6 @@ static int start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -284,7 +284,6 @@ static int start_xmit(struct sk_buff *skb, struct net_device *dev)
/* Activate callback for using skbs: if this returns false it /* Activate callback for using skbs: if this returns false it
* means some were used in the meantime. */ * means some were used in the meantime. */
if (unlikely(!vi->svq->vq_ops->enable_cb(vi->svq))) { if (unlikely(!vi->svq->vq_ops->enable_cb(vi->svq))) {
printk("Unlikely: restart svq race\n");
vi->svq->vq_ops->disable_cb(vi->svq); vi->svq->vq_ops->disable_cb(vi->svq);
netif_start_queue(dev); netif_start_queue(dev);
goto again; goto again;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册