Re: [PATCH] vhost-vdpa: switch to use vmf_insert_pfn() in the fault handler

2024-07-01 Thread Michal Kubiak
On Mon, Jul 01, 2024 at 11:31:59AM +0800, Jason Wang wrote: > remap_pfn_page() should not be called in the fault handler as it may > change the vma->flags which may trigger lockdep warning since the vma > write lock is not held. Actually there's no need to modify the > vma->flags as it has been set

[PATCH] vhost-vdpa: switch to use vmf_insert_pfn() in the fault handler

2024-06-30 Thread Jason Wang
remap_pfn_page() should not be called in the fault handler as it may change the vma->flags which may trigger lockdep warning since the vma write lock is not held. Actually there's no need to modify the vma->flags as it has been set in the mmap(). So this patch switches to use vmf_insert_pfn() inste