[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150510.205213.202914226916051307.davem@davemloft.net>
Date: Sun, 10 May 2015 20:52:13 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: alexander.duyck@...il.com
Cc: alexander.h.duyck@...hat.com, netdev@...r.kernel.org,
linux-mm@...ck.org, akpm@...ux-foundation.org,
eric.dumazet@...il.com
Subject: Re: [PATCH 01/10] net: Use cached copy of pfmemalloc to avoid
accessing page
From: Alexander Duyck <alexander.duyck@...il.com>
Date: Sun, 10 May 2015 17:01:15 -0700
> The reason for the difference between the two is that in the case of
> netdev_alloc_skb/frag the netdev_alloc_cache can only be accessed with
> IRQs disabled, whereas in the napi_alloc_skb case we can access the
> napi_alloc_cache at any point in the function. Either way I am going
> to be stuck with differences because of the local_irq_save/restore
> that must be called when accessing the page frag cache that doesn't
> exist in the napi case.
I see, thanks for explaining.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists