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)
commitaa989f5e46bb913e1a5966bb7d32eb2d00c1894e
treec33501bb56e85a5f1a84d071e531162382467833
parent3ffd05159815d477f971a3259fc758f0c3c7e640
virtio-net: pass gfp to add_buf

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>
drivers/net/virtio_net.c