Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1576096
| From | Andrew Morton <akpm@linux-foundation.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mprotect: drop overprotective lock_pte_protection() |
| Date | 2017-02-07 22:50 +0100 |
| Message-ID | <t8lOb-8hG-47@gated-at.bofh.it> (permalink) |
| References | <t8f61-45q-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 7 Feb 2017 17:33:47 +0300 "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> wrote: > lock_pte_protection() uses pmd_lock() to make sure that we have stable > PTE page table before walking pte range. > > That's not necessary. We only need to make sure that PTE page table is > established. It cannot vanish under us as long as we hold mmap_sem at > least for read. > > And we already have helper for that -- pmd_trans_unstable(). http://ozlabs.org/~akpm/mmots/broken-out/mm-mprotect-use-pmd_trans_unstable-instead-of-taking-the-pmd_lock.patch already did this?
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] mprotect: drop overprotective lock_pte_protection() "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> - 2017-02-07 15:40 +0100
Re: [PATCH] mprotect: drop overprotective lock_pte_protection() Andrea Arcangeli <aarcange@redhat.com> - 2017-02-07 22:30 +0100
Re: [PATCH] mprotect: drop overprotective lock_pte_protection() Andrew Morton <akpm@linux-foundation.org> - 2017-02-07 22:50 +0100
Re: [PATCH] mprotect: drop overprotective lock_pte_protection() "Kirill A. Shutemov" <kirill@shutemov.name> - 2017-02-08 13:10 +0100
Re: [PATCH] mprotect: drop overprotective lock_pte_protection() Andrea Arcangeli <aarcange@redhat.com> - 2017-02-08 15:10 +0100
csiph-web