summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2010-11-04 13:24:24 +0100
committerRusty Russell <rusty@rustcorp.com.au>2010-11-24 05:51:11 +0100
commit7ae4b866f86f9ab7b99484b56dd303a860ad1cc9 (patch)
tree247cd281bdf2e892180ff3407377d0a212c30016 /kernel
parentmodule: Update prototype for ref_module (formerly use_module) (diff)
downloadlinux-7ae4b866f86f9ab7b99484b56dd303a860ad1cc9.tar.xz
linux-7ae4b866f86f9ab7b99484b56dd303a860ad1cc9.zip
virtio: return correct capacity to users
We can't rely on indirect buffers for capacity calculations because they need a memory allocation which might fail. In particular, virtio_net can get into this situation under stress, and it drops packets and performs badly. So return the number of buffers we can guarantee users. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Reported-By: Krishna Kumar2 <krkumar2@in.ibm.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions