From: Rusty Russell Date: Fri, 2 Jul 2010 16:34:01 +0000 (+0000) Subject: virtio_net: fix oom handling on tx X-Git-Tag: v2.6.35-rc5~14^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58eba97d0774c69b1cf3e5a8ac74419409d1abbf;p=pandora-kernel.git virtio_net: fix oom handling on tx virtio net will never try to overflow the TX ring, so the only reason add_buf may fail is out of memory. Thus, we can not stop the device until some request completes - there's no guarantee anything at all is outstanding. Make the error message clearer as well: error here does not indicate queue full. Signed-off-by: Michael S. Tsirkin Signed-off-by: Rusty Russell (...and avoid TX_BUSY) Cc: stable@kernel.org # .34.x (s/virtqueue_/vi->svq->vq_ops->/) Signed-off-by: David S. Miller --- Reading git-diff-tree failed