From: Mike Waychison Date: Wed, 4 Jan 2012 12:52:32 +0000 (+0000) Subject: virtio_net: Pass gfp flags when allocating rx buffers. X-Git-Tag: v3.3-rc1~182^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3464645a10f80ce39bc90c5494a3e92387947818;p=pandora-kernel.git virtio_net: Pass gfp flags when allocating rx buffers. Currently, the refill path for RX buffers will always allocate the buffers as GFP_ATOMIC, even if we are in process context. This will fail to apply memory pressure as the worker thread will not contribute to the freeing of memory. Fix this by changing add_recvbuf_small to use the gfp variant allocator, __netdev_alloc_skb_ip_align(). Signed-off-by: Mike Waychison Acked-by: Rusty Russell Signed-off-by: David S. Miller --- Reading git-diff-tree failed