]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/compaction: remove rcu_read_lock during page compaction
authorAlex Shi <alex.shi@linux.alibaba.com>
Thu, 31 Dec 2020 22:04:12 +0000 (22:04 +0000)
committerJohannes Weiner <hannes@cmpxchg.org>
Thu, 31 Dec 2020 22:04:12 +0000 (22:04 +0000)
commit6296d12500586be3ec8e0c2d10b8f569fca52840
treeb9620f9d8a8a1506d70474d0bfb6110c086b7f3a
parent6eef60f936f33664af72f305ab5fe07b21ca63fe
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!

Link: https://lkml.kernel.org/r/1608614453-10739-3-git-send-email-alex.shi@linux.alibaba.com
Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/compaction.c