virtio-net: pass gfp to add_buf
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 31 May 2010 01:10:01 +0000 (01:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Jun 2010 07:21:20 +0000 (00:21 -0700)
virtio-net bounces buffer allocations off to
a thread if it can't allocate buffers from the atomic
pool. However, if posting buffers still requires atomic
buffers, this is unlikely to succeed.
Fix by passing in the proper gfp_t parameter.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found