| Subject: | regarding [PATCH mmotm] vmscan: raise the bar to PAGEOUT_IO_SYNC stalls |
|---|---|
| Date: | Fri, 6 Aug 2010 02:55:03 -0700 (PDT) |
| From: | Kail <kai...@gmail.com> |
| Reply-To: | zen_k...@googlegroups.com |
| To: | Zen-Kernel <zen_k...@googlegroups.com> |
http://git.zen-kernel.org/?p=kernel/zen.git;a=commit;h=6d1a3963a64325da2bc5d975c8df2807fc826af5
I also committed the change in your new (or old, depends how you look at
it) patch:
http://git.zen-kernel.org/?p=kernel/zen.git;a=commit;h=749cd85bcfbdf1863456abda9e078d7046d3a744
Thanks!
On 08/07/2010 12:04 PM, Wu Fengguang wrote:
> Hi Steven,
>
> On Sat, Aug 07, 2010 at 11:05:49AM +0800, Steven Barrett wrote:
>> Hi Wu,
>>
>> This was sent to the Zen-Kernel mailing list, do you think the code change suggested is a bugfix?
> Would you forward the whole change? Thanks.
>
>> I did notice myself that the variable nr_reclaimed and nr_freed are inconsistent when you look at the variable you are passing to should_reclaim_stall(...), and the variable it initializes as in the function header.
> Attached was my original patch for linux-next. In fact there was no
> such naming confusion there.
>
> When rebasing the patch to mmotm, I found the nr_freed in
> shrink_inactive_list() was renamed to nr_reclaimed. So I did minimal
> change to make the patch work. The function should_reclaim_stall()
> continues to use nr_freed, while the call site is converted to
> nr_reclaim.
>
> This is ugly. Sorry for that. I should have renamed all nr_freed
> occurrences..
>
> Thanks,
> Fengguang