diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2020-12-19 15:19:23 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-01-20 14:46:04 +0000 |
commit | f9ce0be71d1fbb038ada15ced83474b0e63f264d (patch) | |
tree | 81ea4f17081eac47606246a4ba96a43cd8db00c9 /ipc | |
parent | 19c329f6808995b142b3966301f217c831e7cf31 (diff) |
mm: Cleanup faultaround and finish_fault() codepaths
alloc_set_pte() has two users with different requirements: in the
faultaround code, it called from an atomic context and PTE page table
has to be preallocated. finish_fault() can sleep and allocate page table
as needed.
PTL locking rules are also strange, hard to follow and overkill for
finish_fault().
Let's untangle the mess. alloc_set_pte() has gone now. All locking is
explicit.
The price is some code duplication to handle huge pages in faultaround
path, but it should be fine, having overall improvement in readability.
Link: https://lore.kernel.org/r/20201229132819.najtavneutnf7ajp@box
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
[will: s/from from/from/ in comment; spotted by willy]
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions