diff options
| author | Qiang Liu <liuqiang@kylinos.cn> | 2026-05-21 05:18:58 +0300 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-06-09 04:21:32 +0300 |
| commit | 8198657c74170ea78808d1f1d886c7d35fd3694e (patch) | |
| tree | 4e2749dfe3a378ef6cd2a3de64e1c49c7a2430ed /include/linux/workqueue_api.h | |
| parent | 32a2b73ec232b284b029d34bcfaa9a7f424151d2 (diff) | |
| download | linux-8198657c74170ea78808d1f1d886c7d35fd3694e.tar.xz | |
lib/test_hmm: check alloc_page_vma() return value and handle OOM
Check alloc_page_vma() return status for page allocation failures, free
allocated pages and return VM_FAULT_OOM on error.
Handle return codes of dmirror_devmem_fault_alloc_and_copy(), call
migrate_vma_finalize() to remove migration entries from
migrate_vma_setup().
Link: https://lore.kernel.org/20260521021858.21511-1-liuqiangneo@163.com
Signed-off-by: Qiang Liu <liuqiang@kylinos.cn>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Leon Romanovsky <leon@kernel.org>
[akpm@linux-foundation.org: fix dmirror_devmem_fault_alloc_and_copy() retval handling]
Link: https://lore.kernel.org/oe-kbuild-all/202606011329.zWs2BKy4-lkp@intel.com/
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
