Re: [PATCH 1/2] mm: Restructure free-page stealing code and fix a bug

2013-07-24 Thread Srivatsa S. Bhat
On 07/25/2013 08:40 AM, Wanpeng Li wrote: > On Tue, Jul 23, 2013 at 12:18:06AM +0530, Srivatsa S. Bhat wrote: >> The free-page stealing code in __rmqueue_fallback() is somewhat hard to >> follow, and has an incredible amount of subtlety hidden inside! >> >> First off, there is a minor bug in the re

[PATCH 1/2] mm: Restructure free-page stealing code and fix a bug

2013-07-22 Thread Srivatsa S. Bhat
The free-page stealing code in __rmqueue_fallback() is somewhat hard to follow, and has an incredible amount of subtlety hidden inside! First off, there is a minor bug in the reporting of change-of-ownership of pageblocks. Under some conditions, we try to move upto 'pageblock_nr_pages' no. of page