mirror of
https://github.com/torvalds/linux.git
synced 2026-09-01 13:39:03 +02:00
hmm_vma_walk->last is supposed to be updated after every write to the pfns, so that it can be returned by hmm_range_fault(). However, this is not done consistently. Fortunately nothing checks the return code of hmm_range_fault() for anything other than error. More importantly last must be set before returning -EBUSY as it is used to prevent reading an output pfn as an input flags when the loop restarts. For clarity and simplicity make hmm_range_fault() return 0 or -ERRNO. Only set last when returning -EBUSY. Link: https://lore.kernel.org/r/2-v2-b4e84f444c7d+24f57-hmm_no_flags_jgg@mellanox.com Acked-by: Felix Kuehling <Felix.Kuehling@amd.com> Tested-by: Ralph Campbell <rcampbell@nvidia.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| active_mm.rst | ||
| balance.rst | ||
| cleancache.rst | ||
| free_page_reporting.rst | ||
| frontswap.rst | ||
| highmem.rst | ||
| hmm.rst | ||
| hugetlbfs_reserv.rst | ||
| hwpoison.rst | ||
| index.rst | ||
| ksm.rst | ||
| memory-model.rst | ||
| mmu_notifier.rst | ||
| numa.rst | ||
| overcommit-accounting.rst | ||
| page_frags.rst | ||
| page_migration.rst | ||
| page_owner.rst | ||
| remap_file_pages.rst | ||
| slub.rst | ||
| split_page_table_lock.rst | ||
| swap_numa.rst | ||
| transhuge.rst | ||
| unevictable-lru.rst | ||
| z3fold.rst | ||
| zsmalloc.rst | ||
| zswap.rst | ||