From: Minchan Kim <minchan@kernel.org>
To: Rafael Aquini <aquini@redhat.com>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
virtualization@lists.linux-foundation.org,
Rusty Russell <rusty@rustcorp.com.au>,
"Michael S. Tsirkin" <mst@redhat.com>,
Rik van Riel <riel@redhat.com>, Mel Gorman <mel@csn.ul.ie>,
Andi Kleen <andi@firstfloor.org>,
Andrew Morton <akpm@linux-foundation.org>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Rafael Aquini <aquini@linux.com>
Subject: Re: [PATCH v4 1/3] mm: introduce compaction and migration for virtio ballooned pages
Date: Mon, 23 Jul 2012 11:35:10 +0900 [thread overview]
Message-ID: <20120723023510.GB6832@bbox> (raw)
In-Reply-To: <20120723023332.GA6832@bbox>
On Mon, Jul 23, 2012 at 11:33:32AM +0900, Minchan Kim wrote:
> Hi Rafael,
>
> On Fri, Jul 20, 2012 at 04:48:59PM -0300, Rafael Aquini wrote:
> > Howdy Minchan,
> >
> > Once again, thanks for raising such valuable feedback over here.
> >
> > On Wed, Jul 18, 2012 at 02:48:24PM +0900, Minchan Kim wrote:
> > > > +/* __isolate_lru_page() counterpart for a ballooned page */
> > > > +static bool isolate_balloon_page(struct page *page)
> > > > +{
> > > > + if (WARN_ON(!is_balloon_page(page)))
> > > > + return false;
> > >
> > > I am not sure we need this because you alreay check it before calling
> > > isolate_balloon_page. If you really need it, it would be better to
> > > add likely in isolate_balloon_page, too.
> > >
> >
> > This check point was set in place because isolate_balloon_page() was a publicly
> > visible function and while our current usage looks correct it would not hurt to
> > have something like that done -- think of it as an insurance policy, in case
> > someone else, in the future, attempts to use it on any other place outside this
> > specifc context.
> > Despite not seeing it as a dealbreaker for the patch as is, I do agree, however,
> > this snippet can _potentially_ be removed from isolate_balloon_page(), since
> > this function has become static to compaction.c.
>
> Yes. It's not static.
Typo. It's static.
--
Kind regards,
Minchan Kim
WARNING: multiple messages have this Message-ID (diff)
From: Minchan Kim <minchan@kernel.org>
To: Rafael Aquini <aquini@redhat.com>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
virtualization@lists.linux-foundation.org,
Rusty Russell <rusty@rustcorp.com.au>,
"Michael S. Tsirkin" <mst@redhat.com>,
Rik van Riel <riel@redhat.com>, Mel Gorman <mel@csn.ul.ie>,
Andi Kleen <andi@firstfloor.org>,
Andrew Morton <akpm@linux-foundation.org>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Rafael Aquini <aquini@linux.com>
Subject: Re: [PATCH v4 1/3] mm: introduce compaction and migration for virtio ballooned pages
Date: Mon, 23 Jul 2012 11:35:10 +0900 [thread overview]
Message-ID: <20120723023510.GB6832@bbox> (raw)
In-Reply-To: <20120723023332.GA6832@bbox>
On Mon, Jul 23, 2012 at 11:33:32AM +0900, Minchan Kim wrote:
> Hi Rafael,
>
> On Fri, Jul 20, 2012 at 04:48:59PM -0300, Rafael Aquini wrote:
> > Howdy Minchan,
> >
> > Once again, thanks for raising such valuable feedback over here.
> >
> > On Wed, Jul 18, 2012 at 02:48:24PM +0900, Minchan Kim wrote:
> > > > +/* __isolate_lru_page() counterpart for a ballooned page */
> > > > +static bool isolate_balloon_page(struct page *page)
> > > > +{
> > > > + if (WARN_ON(!is_balloon_page(page)))
> > > > + return false;
> > >
> > > I am not sure we need this because you alreay check it before calling
> > > isolate_balloon_page. If you really need it, it would be better to
> > > add likely in isolate_balloon_page, too.
> > >
> >
> > This check point was set in place because isolate_balloon_page() was a publicly
> > visible function and while our current usage looks correct it would not hurt to
> > have something like that done -- think of it as an insurance policy, in case
> > someone else, in the future, attempts to use it on any other place outside this
> > specifc context.
> > Despite not seeing it as a dealbreaker for the patch as is, I do agree, however,
> > this snippet can _potentially_ be removed from isolate_balloon_page(), since
> > this function has become static to compaction.c.
>
> Yes. It's not static.
Typo. It's static.
--
Kind regards,
Minchan Kim
--
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>
next prev parent reply other threads:[~2012-07-23 2:34 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-17 16:50 [PATCH v4 0/3] make balloon pages movable by compaction Rafael Aquini
2012-07-17 16:50 ` Rafael Aquini
2012-07-17 16:50 ` [PATCH v4 1/3] mm: introduce compaction and migration for virtio ballooned pages Rafael Aquini
2012-07-17 16:50 ` Rafael Aquini
2012-07-17 16:50 ` Rafael Aquini
2012-07-18 5:48 ` Minchan Kim
2012-07-18 5:48 ` Minchan Kim
2012-07-18 5:48 ` Minchan Kim
2012-07-20 19:48 ` Rafael Aquini
2012-07-20 19:48 ` Rafael Aquini
2012-07-20 19:48 ` Rafael Aquini
2012-07-23 2:33 ` Minchan Kim
2012-07-23 2:33 ` Minchan Kim
2012-07-23 2:33 ` Minchan Kim
2012-07-23 2:35 ` Minchan Kim
2012-07-23 2:35 ` Minchan Kim [this message]
2012-07-23 2:35 ` Minchan Kim
2012-07-23 18:19 ` Rafael Aquini
2012-07-23 18:19 ` Rafael Aquini
2012-07-23 18:19 ` Rafael Aquini
2012-08-01 20:53 ` Rik van Riel
2012-08-01 20:53 ` Rik van Riel
2012-08-03 11:13 ` Rafael Aquini
2012-08-03 11:13 ` Rafael Aquini
2012-08-03 11:13 ` Rafael Aquini
2012-08-01 20:53 ` Rik van Riel
2012-08-01 20:51 ` Rik van Riel
2012-08-01 20:51 ` Rik van Riel
2012-08-01 20:51 ` Rik van Riel
2012-08-03 12:26 ` Rafael Aquini
2012-08-03 12:26 ` Rafael Aquini
2012-08-03 12:26 ` Rafael Aquini
2012-07-18 22:46 ` Andrew Morton
2012-07-18 22:46 ` Andrew Morton
2012-07-18 22:46 ` Andrew Morton
2012-07-18 23:07 ` Rafael Aquini
2012-07-18 23:07 ` Rafael Aquini
2012-07-18 23:07 ` Rafael Aquini
2012-07-18 23:12 ` Andrew Morton
2012-07-18 23:12 ` Andrew Morton
2012-07-18 23:12 ` Andrew Morton
2012-07-19 1:00 ` Rafael Aquini
2012-07-19 1:00 ` Rafael Aquini
2012-07-19 1:00 ` Rafael Aquini
2012-07-19 1:29 ` Andrew Morton
2012-07-19 1:29 ` Andrew Morton
2012-07-19 1:29 ` Andrew Morton
2012-07-19 12:32 ` Rafael Aquini
2012-07-19 12:32 ` Rafael Aquini
2012-07-19 12:32 ` Rafael Aquini
2012-07-17 16:50 ` [PATCH v4 2/3] virtio_balloon: introduce migration primitives to balloon pages Rafael Aquini
2012-07-17 16:50 ` Rafael Aquini
2012-07-18 22:49 ` Andrew Morton
2012-07-18 22:49 ` Andrew Morton
2012-07-18 22:49 ` Andrew Morton
2012-07-18 23:16 ` Rafael Aquini
2012-07-18 23:16 ` Rafael Aquini
2012-07-18 23:16 ` Rafael Aquini
2012-07-17 16:50 ` Rafael Aquini
2012-07-17 16:50 ` [PATCH v4 3/3] mm: add vm event counters for balloon pages compaction Rafael Aquini
2012-07-17 16:50 ` Rafael Aquini
2012-07-17 16:50 ` Rafael Aquini
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=20120723023510.GB6832@bbox \
--to=minchan@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=aquini@linux.com \
--cc=aquini@redhat.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mel@csn.ul.ie \
--cc=mst@redhat.com \
--cc=riel@redhat.com \
--cc=rusty@rustcorp.com.au \
--cc=virtualization@lists.linux-foundation.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.