mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
mm: Remove pointless barrier() after pmdp_get_lockless()
pmdp_get_lockless() should itself imply any ordering required. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20221022114425.298833095%40infradead.org
This commit is contained in:
parent
d4a72e7fe6
commit
eb780dcae0
1
mm/hmm.c
1
mm/hmm.c
@ -362,7 +362,6 @@ again:
|
||||
* values.
|
||||
*/
|
||||
pmd = pmdp_get_lockless(pmdp);
|
||||
barrier();
|
||||
if (!pmd_devmap(pmd) && !pmd_trans_huge(pmd))
|
||||
goto again;
|
||||
|
||||
|
@ -4041,9 +4041,6 @@ restart:
|
||||
for (i = pmd_index(start), addr = start; addr != end; i++, addr = next) {
|
||||
pmd_t val = pmdp_get_lockless(pmd + i);
|
||||
|
||||
/* for pmdp_get_lockless() */
|
||||
barrier();
|
||||
|
||||
next = pmd_addr_end(addr, end);
|
||||
|
||||
if (!pmd_present(val) || is_huge_zero_pmd(val)) {
|
||||
|
Loading…
Reference in New Issue
Block a user