summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorToshi Kani <toshi.kani@hpe.com>2016-01-15 16:56:05 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-01-15 17:56:32 -0800
commit59bf4fb9d386601cbaa70a9b00159abb846dedaa (patch)
tree0735bb6400f6ed0a3c3be69e1e10018a17fe6a63 /virt
parent01871e59af5cc1cbf290ad6b4b95cd2f0cec9e8c (diff)
downloadop-kernel-dev-59bf4fb9d386601cbaa70a9b00159abb846dedaa.zip
op-kernel-dev-59bf4fb9d386601cbaa70a9b00159abb846dedaa.tar.gz
dax: Split pmd map when fallback on COW
An infinite loop of PMD faults was observed when attempted to mlock() a private read-only PMD mmap'd range of a DAX file. __dax_pmd_fault() simply returns with VM_FAULT_FALLBACK when falling back to PTE on COW. However, __handle_mm_fault() returns without falling back to handle_pte_fault() because a PMD map is present in this case. Change __dax_pmd_fault() to split the PMD map, if present, before returning with VM_FAULT_FALLBACK. Signed-off-by: Toshi Kani <toshi.kani@hpe.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Matthew Wilcox <willy@linux.intel.com> Cc: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud