Home
last modified time | relevance | path

Searched hist:d99fd5feb0ac1d56c36c760a8d922a46bd6c5521 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/mm/
H A Dcompaction.cdiff d99fd5feb0ac1d56c36c760a8d922a46bd6c5521 Wed Feb 24 14:09:25 CST 2021 Alex Shi <alex.shi@linux.alibaba.com> 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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>