Re: [PATCH v1 02/14] mm: remove extra ZONE_DEVICE struct page refcount

From
Vlastimil Babka <hidden>
Date
2021-08-25 11:15:24
Also in
amd-gfx, dri-devel, linux-mm, linux-xfs
Reply to
Alex Sierra, 2021-08-25
On 8/25/21 05:48, Alex Sierra wrote:
From: Ralph Campbell <redacted>

ZONE_DEVICE struct pages have an extra reference count that complicates the
code for put_page() and several places in the kernel that need to check the
reference count to see that a page is not being used (gup, compaction,
migration, etc.). Clean up the code so the reference count doesn't need to
be treated specially for ZONE_DEVICE.
That's certainly welcome. I just wonder what was the reason to use 1 in the
first place and why it's no longer necessary?
Thread (42 messages) 42 messages, 9 authors, last reply 2021-09-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help