diff options
| author | Rik van Riel <[email protected]> | 2023-10-06 03:59:07 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-10-18 19:12:41 +0000 |
| commit | bf4916922c60f43efaa329744b3eef539aa6a2b2 (patch) | |
| tree | a1c192aed48cd3bda5ca9572a64e5a5d21747e1f /tools/net/ynl/generated/devlink-user.h | |
| parent | hugetlbfs: clear resv_map pointer if mmap fails (diff) | |
| download | kernel-bf4916922c60f43efaa329744b3eef539aa6a2b2.tar.gz kernel-bf4916922c60f43efaa329744b3eef539aa6a2b2.zip | |
hugetlbfs: extend hugetlb_vma_lock to private VMAs
Extend the locking scheme used to protect shared hugetlb mappings from
truncate vs page fault races, in order to protect private hugetlb mappings
(with resv_map) against MADV_DONTNEED.
Add a read-write semaphore to the resv_map data structure, and use that
from the hugetlb_vma_(un)lock_* functions, in preparation for closing the
race between MADV_DONTNEED and page faults.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 04ada095dcfc ("hugetlb: don't delete vma_lock in hugetlb MADV_DONTNEED processing")
Signed-off-by: Rik van Riel <[email protected]>
Reviewed-by: Mike Kravetz <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/net/ynl/generated/devlink-user.h')
0 files changed, 0 insertions, 0 deletions
