Re: [PATCH 01/10] net: Use cached copy of pfmemalloc to avoid accessing page

2015-05-10 Thread David Miller
From: Alexander Duyck 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 a

Re: [PATCH 01/10] net: Use cached copy of pfmemalloc to avoid accessing page

2015-05-10 Thread David Miller
From: Alexander Duyck Date: Wed, 06 May 2015 21:11:40 -0700 > + /* use OR instead of assignment to avoid clearing of bits in mask */ > + if (pfmemalloc) > + skb->pfmemalloc = 1; > + skb->head_frag = 1; ... > + /* use OR instead of assignment to avoid clearing of bits