From: Wanpeng Li <liwanp@linux.vnet.ibm.com>
To: Jerome Marchand <jmarchan@redhat.com>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, mgorman@suse.de
Subject: Re: [PATCH] mm: compaction: update comment about zone lock in isolate_freepages_block
Date: Tue, 3 Sep 2013 12:58:22 +0800 [thread overview]
Message-ID: <20130903045822.GA5548@hacker.(null)> (raw)
In-Reply-To: <1377871648-9930-1-git-send-email-jmarchan@redhat.com>
On Fri, Aug 30, 2013 at 04:07:28PM +0200, Jerome Marchand wrote:
>Since commit f40d1e4 (mm: compaction: acquire the zone->lock as late as
>possible), isolate_freepages_block() takes the zone->lock itself. The
>function description however still states that the zone->lock must be
>held.
>This patch removes this outdated statement.
>
Reviewed-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
>Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
>---
> mm/compaction.c | 7 +++----
> 1 files changed, 3 insertions(+), 4 deletions(-)
>
>diff --git a/mm/compaction.c b/mm/compaction.c
>index 05ccb4c..9f9026f 100644
>--- a/mm/compaction.c
>+++ b/mm/compaction.c
>@@ -235,10 +235,9 @@ static bool suitable_migration_target(struct page *page)
> }
>
> /*
>- * Isolate free pages onto a private freelist. Caller must hold zone->lock.
>- * If @strict is true, will abort returning 0 on any invalid PFNs or non-free
>- * pages inside of the pageblock (even though it may still end up isolating
>- * some pages).
>+ * Isolate free pages onto a private freelist. If @strict is true, will abort
>+ * returning 0 on any invalid PFNs or non-free pages inside of the pageblock
>+ * (even though it may still end up isolating some pages).
> */
> static unsigned long isolate_freepages_block(struct compact_control *cc,
> unsigned long blockpfn,
>--
>1.7.7.6
>
>--
>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>
--
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>
prev parent reply other threads:[~2013-09-03 4:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-30 14:07 [PATCH] mm: compaction: update comment about zone lock in isolate_freepages_block Jerome Marchand
2013-09-03 4:58 ` Wanpeng Li
2013-09-03 4:58 ` Wanpeng Li [this message]
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='20130903045822.GA5548@hacker.(null)' \
--to=liwanp@linux.vnet.ibm.com \
--cc=jmarchan@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@suse.de \
/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).