[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20141023.184035.388557314666522484.davem@davemloft.net>
Date: Thu, 23 Oct 2014 18:40:35 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: akpm@...ux-foundation.org
Cc: aneesh.kumar@...ux.vnet.ibm.com, steve.capper@...aro.org,
aarcange@...hat.com, benh@...nel.crashing.org, mpe@...erman.id.au,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org, linux-arch@...r.kernel.org,
hannes@...xchg.org
Subject: Re: [PATCH V2 1/2] mm: Update generic gup implementation to handle
hugepage directory
Hey guys, was looking over the generic GUP while working on a sparc64
issue and I noticed that you guys do speculative page gets, and after
talking with Johannes Weiner (CC:'d) about this we don't see how it
could be necessary.
If interrupts are disabled during the page table scan (which they
are), no IPI tlb flushes can arrive. Therefore any removal from the
page tables is guarded by interrupts being re-enabled. And as a
result, page counts of pages we see in the page tables must always
have a count > 0.
x86 does direct atomic_add() on &page->_count because of this
invariant and I would rather see the generic version do this too.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists