[PATCH 0/4] hugetlbfs: use hinode_rwsem for pmd sharing synchronization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The RFC series reverted all patches where i_mmap_rwsem was used for
pmd sharing synchronization, and then added code to use hinode_rwsem.
This series ends up with the same code in the end, but is structured
as follows:

- Revert the page fault/truncation race patch which depends on i_mmap_rwsem
  always being taken in page fault path.
- Add hinode_rwsem to hugetlbfs specific inode and supporting routines.
- Convert code from using i_mmap_rwsem for pmd sharing synchronization
  to using hinode_rwsem.
- Add code to more robustly deal with page fault/truncation races.

My hope is that this will be easier to review.

Mike Kravetz (4):
  Revert hugetlbfs: Use i_mmap_rwsem to address page fault/truncate race
  hugetlbfs: add hinode_rwsem to hugetlb specific inode
  hugetlbfs: use hinode_rwsem for pmd sharing synchronization
  huegtlbfs: handle page fault/truncate races

 fs/hugetlbfs/inode.c    | 105 +++++++++-------
 include/linux/fs.h      |  15 ---
 include/linux/hugetlb.h | 129 ++++++++++++++++++--
 mm/hugetlb.c            | 262 ++++++++++++++++------------------------
 mm/memory-failure.c     |  34 ++----
 mm/memory.c             |   5 +
 mm/migrate.c            |  34 +++---
 mm/rmap.c               |  21 ++--
 mm/userfaultfd.c        |  17 ++-
 9 files changed, 334 insertions(+), 288 deletions(-)

-- 
2.28.0





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux