[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201103002841.273161-1-mike.kravetz@oracle.com>
Date: Mon, 2 Nov 2020 16:28:37 -0800
From: Mike Kravetz <mike.kravetz@...cle.com>
To: linux-mm@...ck.org, linux-kernel@...r.kernel.org
Cc: Hugh Dickins <hughd@...gle.com>,
Naoya Horiguchi <n-horiguchi@...jp.nec.com>,
Michal Hocko <mhocko@...nel.org>,
"Aneesh Kumar K . V" <aneesh.kumar@...ux.vnet.ibm.com>,
Andrea Arcangeli <aarcange@...hat.com>,
"Kirill A . Shutemov" <kirill.shutemov@...ux.intel.com>,
Davidlohr Bueso <dave@...olabs.net>,
Prakash Sangappa <prakash.sangappa@...cle.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Mike Kravetz <mike.kravetz@...cle.com>
Subject: [PATCH 0/4] hugetlbfs: use hinode_rwsem for pmd sharing synchronization
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
Powered by blists - more mailing lists