Re: [RFC PATCH 27/37] mm: implement speculative handling in do_fault_around()

2021-04-06 Thread Matthew Wilcox
On Tue, Apr 06, 2021 at 06:44:52PM -0700, Michel Lespinasse wrote: > Change xfs_filemap_map_pages() account for the fact that it can not > block anymore, as it is now running within an rcu read lock. Better to just delete xfs_filemap_map_pages() and use filemap_map_pages directly.

[RFC PATCH 27/37] mm: implement speculative handling in do_fault_around()

2021-04-06 Thread Michel Lespinasse
Call the vm_ops->map_pages method within an rcu read locked section. In the speculative case, verify the mmap sequence lock at the start of the section. A match guarantees that the original vma is still valid at that time, and that the associated vma->vm_file stays valid while the