Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1332062 > unrolled thread
| Started by | "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> |
|---|---|
| First post | 2016-02-11 15:30 +0100 |
| Last post | 2016-02-16 11:20 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCHv2 18/28] thp: prepare change_huge_pmd() for file thp "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> - 2016-02-11 15:30 +0100
Re: [PATCHv2 18/28] thp: prepare change_huge_pmd() for file thp Dave Hansen <dave.hansen@intel.com> - 2016-02-12 19:50 +0100
Re: [PATCHv2 18/28] thp: prepare change_huge_pmd() for file thp "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> - 2016-02-16 11:20 +0100
| From | "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> |
|---|---|
| Date | 2016-02-11 15:30 +0100 |
| Subject | [PATCHv2 18/28] thp: prepare change_huge_pmd() for file thp |
| Message-ID | <r10pS-1zg-69@gated-at.bofh.it> |
change_huge_pmd() has assert which is not relvant for file page. For shared mapping it's perfectly fine to have page table entry writable, without explicit mkwrite. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> --- mm/huge_memory.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 00f10d323039..8e2d84698c15 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -1756,7 +1756,6 @@ int change_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, entry = pmd_mkwrite(entry); ret = HPAGE_PMD_NR; set_pmd_at(mm, addr, pmd, entry); - BUG_ON(!preserve_write && pmd_write(entry)); } spin_unlock(ptl); } -- 2.7.0
[toc] | [next] | [standalone]
| From | Dave Hansen <dave.hansen@intel.com> |
|---|---|
| Date | 2016-02-12 19:50 +0100 |
| Message-ID | <r1qX0-2kB-3@gated-at.bofh.it> |
| In reply to | #1332062 |
On 02/11/2016 06:21 AM, Kirill A. Shutemov wrote: > change_huge_pmd() has assert which is not relvant for file page. > For shared mapping it's perfectly fine to have page table entry > writable, without explicit mkwrite. Should we have the bug only trigger on anonymous VMAs instead of removing it?
[toc] | [prev] | [next] | [standalone]
| From | "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> |
|---|---|
| Date | 2016-02-16 11:20 +0100 |
| Message-ID | <r2KTF-6wn-25@gated-at.bofh.it> |
| In reply to | #1333028 |
On Fri, Feb 12, 2016 at 10:48:59AM -0800, Dave Hansen wrote: > On 02/11/2016 06:21 AM, Kirill A. Shutemov wrote: > > change_huge_pmd() has assert which is not relvant for file page. > > For shared mapping it's perfectly fine to have page table entry > > writable, without explicit mkwrite. > > Should we have the bug only trigger on anonymous VMAs instead of > removing it? Makes sense. -- Kirill A. Shutemov
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web