On 3/29/22 18:04, David Hildenbrand wrote: > Let's do it just like copy_page_range(), taking the seqlock and making > sure the mmap_lock is held in write mode. > > This allows for add a VM_BUG_ON to page_needs_cow_for_dma() and > properly synchronizes cocnurrent fork() with GUP-fast of hugetlb pages, concurrent > which will be relevant for further changes. > > Signed-off-by: David Hildenbrand <david@xxxxxxxxxx> Acked-by: Vlastimil Babka <vbabka@xxxxxxx>