Commit 42b2eb6
mm: convert partially_mapped set/clear operations to be atomic
Other page flags in the 2nd page, like PG_hwpoison and PG_anon_exclusive
can get modified concurrently. Changes to other page flags might be lost
if they are happening at the same time as non-atomic partially_mapped
operations. Hence, make partially_mapped operations atomic.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 8422acd ("mm: introduce a pageflag for partially mapped folios")
Reported-by: David Hildenbrand <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Usama Arif <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Acked-by: Roman Gushchin <[email protected]>
Cc: Barry Song <[email protected]>
Cc: Domenico Cerasuolo <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Mike Rapoport (Microsoft) <[email protected]>
Cc: Nico Pache <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Ryan Roberts <[email protected]>
Cc: Shakeel Butt <[email protected]>
Cc: Yu Zhao <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>1 parent 6309b8c commit 42b2eb6
2 files changed
+6
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
| 865 | + | |
872 | 866 | | |
873 | 867 | | |
874 | | - | |
875 | | - | |
876 | | - | |
| 868 | + | |
877 | 869 | | |
878 | 870 | | |
879 | 871 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3577 | 3577 | | |
3578 | 3578 | | |
3579 | 3579 | | |
3580 | | - | |
| 3580 | + | |
3581 | 3581 | | |
3582 | 3582 | | |
3583 | 3583 | | |
| |||
3689 | 3689 | | |
3690 | 3690 | | |
3691 | 3691 | | |
3692 | | - | |
| 3692 | + | |
3693 | 3693 | | |
3694 | 3694 | | |
3695 | 3695 | | |
| |||
3733 | 3733 | | |
3734 | 3734 | | |
3735 | 3735 | | |
3736 | | - | |
| 3736 | + | |
3737 | 3737 | | |
3738 | 3738 | | |
3739 | 3739 | | |
| |||
3826 | 3826 | | |
3827 | 3827 | | |
3828 | 3828 | | |
3829 | | - | |
| 3829 | + | |
3830 | 3830 | | |
3831 | 3831 | | |
3832 | 3832 | | |
| |||
0 commit comments