Re: [PATCH v2 06/20] mm, hugetlb: return a reserved page to a reserved pool if failed

2013-08-22 Thread Joonsoo Kim
On Wed, Aug 21, 2013 at 03:24:13PM +0530, Aneesh Kumar K.V wrote: > Joonsoo Kim writes: > > > If we fail with a reserved page, just calling put_page() is not sufficient, > > because put_page() invoke free_huge_page() at last step and it doesn't > > know whether a page comes from a reserved pool

Re: [PATCH v2 06/20] mm, hugetlb: return a reserved page to a reserved pool if failed

2013-08-22 Thread Joonsoo Kim
On Wed, Aug 21, 2013 at 03:24:13PM +0530, Aneesh Kumar K.V wrote: Joonsoo Kim iamjoonsoo@lge.com writes: If we fail with a reserved page, just calling put_page() is not sufficient, because put_page() invoke free_huge_page() at last step and it doesn't know whether a page comes from a

Re: [PATCH v2 06/20] mm, hugetlb: return a reserved page to a reserved pool if failed

2013-08-21 Thread Aneesh Kumar K.V
Joonsoo Kim writes: > If we fail with a reserved page, just calling put_page() is not sufficient, > because put_page() invoke free_huge_page() at last step and it doesn't > know whether a page comes from a reserved pool or not. So it doesn't do > anything related to reserved count. This makes

Re: [PATCH v2 06/20] mm, hugetlb: return a reserved page to a reserved pool if failed

2013-08-21 Thread Aneesh Kumar K.V
Joonsoo Kim iamjoonsoo@lge.com writes: If we fail with a reserved page, just calling put_page() is not sufficient, because put_page() invoke free_huge_page() at last step and it doesn't know whether a page comes from a reserved pool or not. So it doesn't do anything related to reserved

[PATCH v2 06/20] mm, hugetlb: return a reserved page to a reserved pool if failed

2013-08-09 Thread Joonsoo Kim
If we fail with a reserved page, just calling put_page() is not sufficient, because put_page() invoke free_huge_page() at last step and it doesn't know whether a page comes from a reserved pool or not. So it doesn't do anything related to reserved count. This makes reserve count lower than how we

[PATCH v2 06/20] mm, hugetlb: return a reserved page to a reserved pool if failed

2013-08-09 Thread Joonsoo Kim
If we fail with a reserved page, just calling put_page() is not sufficient, because put_page() invoke free_huge_page() at last step and it doesn't know whether a page comes from a reserved pool or not. So it doesn't do anything related to reserved count. This makes reserve count lower than how we