Re: [PATCH v2 net-next 3/4] net: introduce common dev_page_is_reserved()

2021-01-30 Thread John Hubbard
On 1/30/21 11:45 AM, Alexander Lobakin wrote: From: Jakub Kicinski Date: Sat, 30 Jan 2021 11:07:07 -0800 On Sat, 30 Jan 2021 15:42:29 + Alexander Lobakin wrote: On Wed, 27 Jan 2021 20:11:23 + Alexander Lobakin wrote: + * dev_page_is_reserved - check whether a page can be reused

Re: [PATCH v2 net-next 3/4] net: introduce common dev_page_is_reserved()

2021-01-30 Thread Alexander Lobakin
From: Jakub Kicinski Date: Sat, 30 Jan 2021 11:07:07 -0800 > On Sat, 30 Jan 2021 15:42:29 + Alexander Lobakin wrote: > > > On Wed, 27 Jan 2021 20:11:23 + Alexander Lobakin wrote: > > > > + * dev_page_is_reserved - check whether a page can be reused for > > > > network Rx > > > > + *

Re: [PATCH v2 net-next 3/4] net: introduce common dev_page_is_reserved()

2021-01-30 Thread Jakub Kicinski
On Sat, 30 Jan 2021 15:42:29 + Alexander Lobakin wrote: > > On Wed, 27 Jan 2021 20:11:23 + Alexander Lobakin wrote: > > > + * dev_page_is_reserved - check whether a page can be reused for network > > > Rx > > > + * @page: the page to test > > > + * > > > + * A page shouldn't be

Re: [PATCH v2 net-next 3/4] net: introduce common dev_page_is_reserved()

2021-01-30 Thread Alexander Lobakin
From: Jakub Kicinski Date: Fri, 29 Jan 2021 18:39:07 -0800 > On Wed, 27 Jan 2021 20:11:23 + Alexander Lobakin wrote: > > + * dev_page_is_reserved - check whether a page can be reused for network Rx > > + * @page: the page to test > > + * > > + * A page shouldn't be considered for

Re: [PATCH v2 net-next 3/4] net: introduce common dev_page_is_reserved()

2021-01-30 Thread Jakub Kicinski
On Wed, 27 Jan 2021 20:11:23 + Alexander Lobakin wrote: > + * dev_page_is_reserved - check whether a page can be reused for network Rx > + * @page: the page to test > + * > + * A page shouldn't be considered for reusing/recycling if it was allocated > + * under memory pressure or at a distant

Re: [PATCH v2 net-next 3/4] net: introduce common dev_page_is_reserved()

2021-01-28 Thread David Rientjes
On Wed, 27 Jan 2021, Alexander Lobakin wrote: > A bunch of drivers test the page before reusing/recycling for two > common conditions: > - if a page was allocated under memory pressure (pfmemalloc page); > - if a page was allocated at a distant memory node (to exclude >slowdowns). > >

Re: [PATCH v2 net-next 3/4] net: introduce common dev_page_is_reserved()

2021-01-27 Thread Jesse Brandeburg
Alexander Lobakin wrote: > A bunch of drivers test the page before reusing/recycling for two > common conditions: > - if a page was allocated under memory pressure (pfmemalloc page); > - if a page was allocated at a distant memory node (to exclude >slowdowns). > > Introduce and use a new

[PATCH v2 net-next 3/4] net: introduce common dev_page_is_reserved()

2021-01-27 Thread Alexander Lobakin
A bunch of drivers test the page before reusing/recycling for two common conditions: - if a page was allocated under memory pressure (pfmemalloc page); - if a page was allocated at a distant memory node (to exclude slowdowns). Introduce and use a new common function for doing this and