linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Vincent Li <macli@brc.ubc.ca>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Minchan Kim <minchan.kim@gmail.com>,
	Vincent Li <macli@brc.ubc.ca>,
	linux-mm@kvack.org, Rik van Riel <riel@redhat.com>,
	Wu Fengguang <fengguang.wu@intel.com>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] mm/vsmcan: check shrink_active_list() sc->isolate_pages() return value.
Date: Mon, 31 Aug 2009 21:56:39 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.1.00.0908312154130.27447@mail.selltech.ca> (raw)
In-Reply-To: <20090901094157.1A80.A69D9226@jp.fujitsu.com>

On Tue, 1 Sep 2009, KOSAKI Motohiro wrote:

> > On Mon, 31 Aug 2009 17:01:03 -0700 (PDT)
> > Vincent Li <macli@brc.ubc.ca> wrote:
> > 
> > > On Tue, 1 Sep 2009, Minchan Kim wrote:
> > > 
> > > > On Mon, 31 Aug 2009 15:54:01 -0700
> > > > Vincent Li <macli@brc.ubc.ca> wrote:
> > > > 
> > > > > commit 5343daceec (If sc->isolate_pages() return 0...) make shrink_inactive_list handle
> > > > > sc->isolate_pages() return value properly. Add similar proper return value check for
> > > > > shrink_active_list() sc->isolate_pages().
> > > > > 
> > > > > Signed-off-by: Vincent Li <macli@brc.ubc.ca>
> > > > Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
> > > > 
> > > > You should have write down your patch's effect clearly
> > > > in changelog although it's easy. ;-)
> > > 
> > > Yes, I should have. This patch is inspired by Kosaki's patch, I 
> > > thought mentioning that commit would make this patch as follow-up work and 
> > > changelog clear enough. Would following changelog ok?
> > > 
> > > ----
> > > Add proper return value check for shrink_active_list() 
> > > sc->isolate_pages(). 
> > > 
> > > When "nr_taken == 0"
> > > 	1: nr_scan related statistics should still be caculated.
> > > 	2: jump to the end of function and release zone->lru_lock.
> > 
> > It looks good than old. 
> > In fact, What I wanted is your patch impact.
> > 
> > For example, 
> > ----
> > If we can't isolate pages from LRU list, 
> > we don't have to account page movement, either.
> > Already, in commit 5343daceec, KOSAKI did it about shrink_inactive_list.
> > 
> > This patch removes unnecessary overhead of page accouting 
> > and locking in shrink_active_list as follow-up work of commit 5343daceec.
> > ---
> 
> Vincent, can you please resubmit the patch with new description?
> Plus, You can add my reviewed-by sign too.

Ok, I will resubmit the patch with Kim's description and add reviewed-by 
sign. Thanks everyone for reviewing!

Vincent Li
Biomedical Research Center
University of British Columbia

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2009-09-01  4:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-31 22:54 [PATCH] mm/vsmcan: check shrink_active_list() sc->isolate_pages() return value Vincent Li
2009-08-31 23:29 ` Minchan Kim
2009-09-01  0:01   ` Vincent Li
2009-09-01  0:12     ` Minchan Kim
2009-09-01  0:43       ` KOSAKI Motohiro
2009-09-01  4:56         ` Vincent Li [this message]
2009-08-31 23:42 ` Rik van Riel
2009-09-01  1:56 ` Wu Fengguang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.1.00.0908312154130.27447@mail.selltech.ca \
    --to=macli@brc.ubc.ca \
    --cc=akpm@linux-foundation.org \
    --cc=fengguang.wu@intel.com \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=linux-mm@kvack.org \
    --cc=minchan.kim@gmail.com \
    --cc=riel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).