lkml.org 
[lkml]   [2012]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC PATCH v1 1/2] virtio_net: Pass gfp flags when allocating rx buffers.
From
From: Rusty Russell <rusty@rustcorp.com.au>
Date: Thu, 05 Jan 2012 10:40:02 +1030

> On Wed, 04 Jan 2012 14:52:32 -0800, Mike Waychison <mikew@google.com> wrote:
>> 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 <mikew@google.com>
>
> OK, this is a no-brainer. Thanks! Dave, can you pick this up?
>
> Acked-by: Rusty Russell <rusty@rustcorp.com.au>

Applied.


\
 
 \ /
  Last update: 2012-01-05 19:23    [W:0.053 / U:0.164 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site