All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm: compaction: update comment about zone lock in isolate_freepages_block
@ 2013-08-30 14:07 ` Jerome Marchand
  0 siblings, 0 replies; 4+ messages in thread
From: Jerome Marchand @ 2013-08-30 14:07 UTC (permalink / raw)
  To: linux-mm; +Cc: linux-kernel, mgorman

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.

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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] mm: compaction: update comment about zone lock in isolate_freepages_block
@ 2013-08-30 14:07 ` Jerome Marchand
  0 siblings, 0 replies; 4+ messages in thread
From: Jerome Marchand @ 2013-08-30 14:07 UTC (permalink / raw)
  To: linux-mm; +Cc: linux-kernel, mgorman

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.

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>

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] mm: compaction: update comment about zone lock in isolate_freepages_block
  2013-08-30 14:07 ` Jerome Marchand
  (?)
  (?)
@ 2013-09-03  4:58 ` Wanpeng Li
  -1 siblings, 0 replies; 4+ messages in thread
From: Wanpeng Li @ 2013-09-03  4:58 UTC (permalink / raw)
  To: Jerome Marchand; +Cc: linux-mm, linux-kernel, mgorman

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>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mm: compaction: update comment about zone lock in isolate_freepages_block
  2013-08-30 14:07 ` Jerome Marchand
  (?)
@ 2013-09-03  4:58 ` Wanpeng Li
  -1 siblings, 0 replies; 4+ messages in thread
From: Wanpeng Li @ 2013-09-03  4:58 UTC (permalink / raw)
  To: Jerome Marchand; +Cc: linux-mm, linux-kernel, mgorman

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>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-03  4:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-30 14:07 [PATCH] mm: compaction: update comment about zone lock in isolate_freepages_block Jerome Marchand
2013-08-30 14:07 ` Jerome Marchand
2013-09-03  4:58 ` Wanpeng Li
2013-09-03  4:58 ` Wanpeng Li

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.