mm-compaction-remove-rcu_read_lock-during-page-compaction.patch removed from -mm tree
The patch titled
Subject: mm/compaction: remove rcu_read_lock during page compaction
has been removed from the -mm tree. Its filename was
mm-compaction-remove-rcu_read_lock-during-page-compaction.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Alex Shi <[email protected]>
Subject: mm/compaction: remove rcu_read_lock during page compaction
isolate_migratepages_block() used rcu_read_lock() with the intention of safeguarding against the mem_cgroup being destroyed concurrently; but its TestClearPageLRU already protects against that. Delete the unnecessary rcu_read_lock() and _unlock().
Hugh Dickins helped on commit log polishing, Thanks!
---
mm/compaction.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
mm/compaction.c renamed from mm/compaction.c~mm-compaction-remove-rcu_read_lock-during-page-compaction +1 -4
@@ -995,7 +995,6 @@ isolate_migratepages_block(struct compacif (!TestClearPageLRU (page)) goto isolate_fail_put; -rcu_read_lock (); lruvec =mem_cgroup_page_lruvec (page, pgdat);/* If we already hold the lock, we can skip some rechecking */
@@ -1005,7 +1004,6 @@ isolate_migratepages_block(struct compaccompact_lock_irqsave (&lruvec->lru_lock, &flags, cc); locked = lruvec; -rcu_read_unlock ();lruvec_memcg_debug (lruvec, page);
@@ -1026,8 +1024,7 @@ isolate_migratepages_block(struct compacSetPageLRU (page); goto isolate_fail_put; } - }else -rcu_read_unlock (); + }/* The whole page is taken off the LRU; skip the tail pages. */ if (PageCompound (page))
_
Patches currently in -mm which might be from [email protected] are