Skip to content

Commit

Permalink
mm: Remove pointless barrier() after pmdp_get_lockless()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Peter Zijlstra authored and hansendc committed Dec 15, 2022
1 parent d4a72e7 commit eb780dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion mm/hmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ static int hmm_vma_walk_pmd(pmd_t *pmdp,
* values.
*/
pmd = pmdp_get_lockless(pmdp);
barrier();
if (!pmd_devmap(pmd) && !pmd_trans_huge(pmd))
goto again;

Expand Down
3 changes: 0 additions & 3 deletions mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -4041,9 +4041,6 @@ static void walk_pmd_range(pud_t *pud, unsigned long start, unsigned long end,
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)) {
Expand Down

0 comments on commit eb780dc

Please sign in to comment.