Commit f9b1038
mm/memcg: remove rcu locking for lock_page_lruvec function series
lock_page_lruvec() and its variants used rcu_read_lock() with the
intention of safeguarding against the mem_cgroup being destroyed
concurrently; but so long as they are called under the specified
conditions (as they are), there is no way for the page's mem_cgroup to be
destroyed. Delete the unnecessary rcu_read_lock() and _unlock().
Hugh Dickins polished the commit log. Thanks a lot!
Link: https://lkml.kernel.org/r/1608614453-10739-2-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>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent d7e3aba commit f9b1038
1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1357 | 1357 | | |
1358 | 1358 | | |
1359 | 1359 | | |
1360 | | - | |
1361 | 1360 | | |
1362 | 1361 | | |
1363 | | - | |
1364 | 1362 | | |
1365 | 1363 | | |
1366 | 1364 | | |
| |||
1372 | 1370 | | |
1373 | 1371 | | |
1374 | 1372 | | |
1375 | | - | |
1376 | 1373 | | |
1377 | 1374 | | |
1378 | | - | |
1379 | 1375 | | |
1380 | 1376 | | |
1381 | 1377 | | |
| |||
1387 | 1383 | | |
1388 | 1384 | | |
1389 | 1385 | | |
1390 | | - | |
1391 | 1386 | | |
1392 | 1387 | | |
1393 | | - | |
1394 | 1388 | | |
1395 | 1389 | | |
1396 | 1390 | | |
| |||
0 commit comments