Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1629808
| From | Dan Williams <dan.j.williams@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: get_zone_device_page() in get_page() and page_cache_get_speculative() |
| Date | 2017-04-24 19:30 +0200 |
| Message-ID | <tzPYd-1pP-7@gated-at.bofh.it> (permalink) |
| References | <tys7D-5IQ-11@gated-at.bofh.it> <tzzgJ-6ZY-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sun, Apr 23, 2017 at 4:31 PM, Kirill A. Shutemov <kirill@shutemov.name> wrote: > On Thu, Apr 20, 2017 at 02:46:51PM -0700, Dan Williams wrote: >> On Sat, Mar 18, 2017 at 2:52 AM, tip-bot for Kirill A. Shutemov >> <tipbot@zytor.com> wrote: >> > Commit-ID: 2947ba054a4dabbd82848728d765346886050029 >> > Gitweb: http://git.kernel.org/tip/2947ba054a4dabbd82848728d765346886050029 >> > Author: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> >> > AuthorDate: Fri, 17 Mar 2017 00:39:06 +0300 >> > Committer: Ingo Molnar <mingo@kernel.org> >> > CommitDate: Sat, 18 Mar 2017 09:48:03 +0100 >> > >> > x86/mm/gup: Switch GUP to the generic get_user_page_fast() implementation >> > >> > This patch provides all required callbacks required by the generic >> > get_user_pages_fast() code and switches x86 over - and removes >> > the platform specific implementation. >> > >> > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> >> > Cc: Andrew Morton <akpm@linux-foundation.org> >> > Cc: Aneesh Kumar K . V <aneesh.kumar@linux.vnet.ibm.com> >> > Cc: Borislav Petkov <bp@alien8.de> >> > Cc: Catalin Marinas <catalin.marinas@arm.com> >> > Cc: Dann Frazier <dann.frazier@canonical.com> >> > Cc: Dave Hansen <dave.hansen@intel.com> >> > Cc: H. Peter Anvin <hpa@zytor.com> >> > Cc: Linus Torvalds <torvalds@linux-foundation.org> >> > Cc: Peter Zijlstra <peterz@infradead.org> >> > Cc: Rik van Riel <riel@redhat.com> >> > Cc: Steve Capper <steve.capper@linaro.org> >> > Cc: Thomas Gleixner <tglx@linutronix.de> >> > Cc: linux-arch@vger.kernel.org >> > Cc: linux-mm@kvack.org >> > Link: http://lkml.kernel.org/r/20170316213906.89528-1-kirill.shutemov@linux.intel.com >> > [ Minor readability edits. ] >> > Signed-off-by: Ingo Molnar <mingo@kernel.org> >> >> I'm still trying to spot the bug, but bisect points to this patch as >> the point at which my unit tests start failing with the following >> signature: >> >> [ 35.423841] WARNING: CPU: 8 PID: 245 at lib/percpu-refcount.c:155 >> percpu_ref_switch_to_atomic_rcu+0x1f5/0x200 > > Okay, I've tracked it down. The issue is triggered by replacment > get_page() with page_cache_get_speculative(). > > page_cache_get_speculative() doesn't have get_zone_device_page(). :-| > > And I think it's your bug, Dan: it's wrong to have > get_/put_zone_device_page() in get_/put_page(). I must be handled by > page_ref_* machinery to catch all cases where we manipulate with page > refcount. The page_ref conversion landed in 4.6 *after* the ZONE_DEVICE implementation that landed in 4.5, so there was a missed conversion of the zone-device reference counting to page_ref. > Back to the big picture: > > I hate that we need to have such additional code in page refcount > primitives. I worked hard to remove compound page ugliness from there and > now zone_device creeping in... > > Is it the only option? Not sure, I need to spend some time to understand what page_ref means to ZONE_DEVICE.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [tip:x86/mm] x86/mm/gup: Switch GUP to the generic get_user_page_fast() implementation Dan Williams <dan.j.williams@intel.com> - 2017-04-20 23:50 +0200
Re: [tip:x86/mm] x86/mm/gup: Switch GUP to the generic get_user_page_fast() implementation "Kirill A. Shutemov" <kirill@shutemov.name> - 2017-04-21 16:20 +0200
Re: [tip:x86/mm] x86/mm/gup: Switch GUP to the generic get_user_page_fast() implementation Dan Williams <dan.j.williams@intel.com> - 2017-04-21 21:40 +0200
[PATCH] Revert "x86/mm/gup: Switch GUP to the generic get_user_page_fast() implementation" Ingo Molnar <mingo@kernel.org> - 2017-04-23 12:00 +0200
get_zone_device_page() in get_page() and page_cache_get_speculative() "Kirill A. Shutemov" <kirill@shutemov.name> - 2017-04-24 01:40 +0200
Re: get_zone_device_page() in get_page() and page_cache_get_speculative() Dan Williams <dan.j.williams@intel.com> - 2017-04-24 19:30 +0200
Re: get_zone_device_page() in get_page() and page_cache_get_speculative() "Kirill A. Shutemov" <kirill@shutemov.name> - 2017-04-24 19:40 +0200
Re: get_zone_device_page() in get_page() and page_cache_get_speculative() Dan Williams <dan.j.williams@intel.com> - 2017-04-24 19:50 +0200
Re: get_zone_device_page() in get_page() and page_cache_get_speculative() "Kirill A. Shutemov" <kirill@shutemov.name> - 2017-04-24 20:10 +0200
Re: get_zone_device_page() in get_page() and page_cache_get_speculative() "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> - 2017-04-24 20:30 +0200
Re: get_zone_device_page() in get_page() and page_cache_get_speculative() Dan Williams <dan.j.williams@intel.com> - 2017-04-24 20:50 +0200
Re: get_zone_device_page() in get_page() and page_cache_get_speculative() "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> - 2017-04-25 15:30 +0200
Re: get_zone_device_page() in get_page() and page_cache_get_speculative() Dan Williams <dan.j.williams@intel.com> - 2017-04-25 18:50 +0200
[PATCH] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Dan Williams <dan.j.williams@intel.com> - 2017-04-27 03:10 +0200
Re: [PATCH] mm, zone_device: replace {get, put}_zone_device_page() with a single reference "Kirill A. Shutemov" <kirill@shutemov.name> - 2017-04-27 10:40 +0200
Re: [PATCH] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Ingo Molnar <mingo@kernel.org> - 2017-04-28 08:40 +0200
[PATCH] mm, zone_device: Replace {get, put}_zone_device_page() with a single reference "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> - 2017-04-28 10:20 +0200
[PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Dan Williams <dan.j.williams@intel.com> - 2017-04-28 19:30 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Jerome Glisse <jglisse@redhat.com> - 2017-04-28 19:40 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Dan Williams <dan.j.williams@intel.com> - 2017-04-28 19:50 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Jerome Glisse <jglisse@redhat.com> - 2017-04-28 20:10 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Dan Williams <dan.j.williams@intel.com> - 2017-04-28 21:10 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Jerome Glisse <jglisse@redhat.com> - 2017-04-28 21:20 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Dan Williams <dan.j.williams@intel.com> - 2017-04-28 21:30 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Jerome Glisse <jglisse@redhat.com> - 2017-04-28 21:40 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference "Kirill A. Shutemov" <kirill@shutemov.name> - 2017-04-29 12:20 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Jerome Glisse <jglisse@redhat.com> - 2017-05-01 01:20 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Dan Williams <dan.j.williams@intel.com> - 2017-05-01 03:50 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Jerome Glisse <jglisse@redhat.com> - 2017-05-01 04:00 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Dan Williams <dan.j.williams@intel.com> - 2017-05-01 04:50 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Logan Gunthorpe <logang@deltatee.com> - 2017-05-01 05:50 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference "Kirill A. Shutemov" <kirill@shutemov.name> - 2017-05-01 12:50 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Jerome Glisse <jglisse@redhat.com> - 2017-05-01 16:00 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Dan Williams <dan.j.williams@intel.com> - 2017-05-01 22:30 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Jerome Glisse <jglisse@redhat.com> - 2017-05-01 22:40 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference "Kirill A. Shutemov" <kirill@shutemov.name> - 2017-05-02 13:50 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Jerome Glisse <jglisse@redhat.com> - 2017-05-02 15:30 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Ingo Molnar <mingo@kernel.org> - 2017-04-29 16:20 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Dan Williams <dan.j.williams@intel.com> - 2017-05-01 04:50 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Ingo Molnar <mingo@kernel.org> - 2017-05-01 09:20 +0200
Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference "Kirill A. Shutemov" <kirill@shutemov.name> - 2017-05-01 11:40 +0200
[tip:x86/mm] mm, zone_device: Replace {get, put}_zone_device_page() with a single reference to fix pmem crash tip-bot for Dan Williams <tipbot@zytor.com> - 2017-05-01 10:40 +0200
Re: [PATCH] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Dan Williams <dan.j.williams@intel.com> - 2017-04-27 18:20 +0200
Re: [PATCH] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Logan Gunthorpe <logang@deltatee.com> - 2017-04-27 18:40 +0200
Re: [PATCH] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Dan Williams <dan.j.williams@intel.com> - 2017-04-27 18:40 +0200
Re: [PATCH] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Dan Williams <dan.j.williams@intel.com> - 2017-04-27 18:50 +0200
Re: [PATCH] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Logan Gunthorpe <logang@deltatee.com> - 2017-04-27 18:50 +0200
Re: [PATCH] mm, zone_device: replace {get, put}_zone_device_page() with a single reference Logan Gunthorpe <logang@deltatee.com> - 2017-04-27 18:20 +0200
csiph-web