login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
9
Re: [PATCH 08 of 11] anon-vma-rwsem
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Peter Zijlstra <a.p.zijlstra@...>
To: Andrea Arcangeli <andrea@...>
Cc: Linus Torvalds <torvalds@...>, Christoph Lameter <clameter@...>, Andrew Morton <akpm@...>, <steiner@...>, <holt@...>, <npiggin@...>, <kvm-devel@...>, <kanojsarcar@...>, <rdreier@...>, <swise@...>, <linux-kernel@...>, <avi@...>, <linux-mm@...>, <general@...>, <hugh@...>, <rusty@...>, <aliguori@...>, <chrisw@...>, <marcelo@...>, <dada1@...>, <paulmck@...>
Subject:
Re: [PATCH 08 of 11] anon-vma-rwsem
Date: Friday, May 9, 2008 - 3:04 pm
On Fri, 2008-05-09 at 20:55 +0200, Andrea Arcangeli wrote:
quoted text
> On Fri, May 09, 2008 at 08:37:29PM +0200, Peter Zijlstra wrote: > > Another possibility, would something like this work? > > > > > > /* > > * null out the begin function, no new begin calls can be made > > */ > > rcu_assing_pointer(my_notifier.invalidate_start_begin, NULL); > > > > /* > > * lock/unlock all rmap locks in any order - this ensures that any > > * pending start() will have its end() function called. > > */ > > mm_barrier(mm); > > > > /* > > * now that no new start() call can be made and all start()/end() pairs > > * are complete we can remove the notifier. > > */ > > mmu_notifier_remove(mm, my_notifier); > > > > > > This requires a mmu_notifier instance per attached mm and that > > __mmu_notifier_invalidate_range_start() uses rcu_dereference() to obtain > > the function. > > > > But I think its enough to ensure that: > > > > for each start an end will be called > > We don't need that, it's perfectly ok if start is called but end is > not, it's ok to unregister in the middle as I guarantee ->release is > called before mmu_notifier_unregister returns (if ->release is needed > at all, not the case for KVM/GRU). > > Unregister is already solved with srcu/rcu without any additional > complication as we don't need the guarantee that for each start an end > will be called. > > > It can however happen that end is called without start - but we could > > handle that I think. > > The only reason mm_lock() was introduced is to solve "register", to > guarantee that for each end there was a start. We can't handle end > called without start in the driver. > > The reason the driver must be prevented to register in the middle of > start/end, if that if it ever happens the driver has no way to know it > must stop the secondary mmu page faults to call get_user_pages and > instantiate sptes/secondarytlbs on pages that will be freed as soon as > zap_page_range starts.
Right - then I got it backwards. Never mind me then.. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH 00 of 11] mmu notifier #v16
, Andrea Arcangeli
, (Wed May 7, 10:35 am)
[PATCH 10 of 11] export zap_page_range for XPMEM
, Andrea Arcangeli
, (Wed May 7, 10:36 am)
[PATCH 11 of 11] mmap sems
, Andrea Arcangeli
, (Wed May 7, 10:36 am)
[PATCH 09 of 11] mm_lock-rwsem
, Andrea Arcangeli
, (Wed May 7, 10:35 am)
[PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Wed May 7, 10:35 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 7, 4:56 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Wed May 7, 5:26 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Jack Steiner
, (Wed May 7, 6:42 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 7, 5:36 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Robin Holt
, (Wed May 7, 8:38 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Nick Piggin
, (Tue May 13, 8:06 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Robin Holt
, (Tue May 13, 11:32 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Nick Piggin
, (Wed May 14, 12:11 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Robin Holt
, (Wed May 14, 7:26 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Nick Piggin
, (Thu May 15, 3:57 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Christoph Lameter
, (Thu May 15, 1:33 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Nick Piggin
, (Thu May 15, 7:52 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Robin Holt
, (Fri May 16, 7:23 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Robin Holt
, (Fri May 16, 7:50 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Nick Piggin
, (Tue May 20, 1:31 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Robin Holt
, (Tue May 20, 6:01 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Nick Piggin
, (Tue May 20, 6:50 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Robin Holt
, (Tue May 20, 7:05 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Nick Piggin
, (Tue May 20, 7:14 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Robin Holt
, (Tue May 20, 7:26 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Robin Holt
, (Thu May 15, 7:01 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Avi Kivity
, (Thu May 15, 7:12 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 14, 11:18 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Christoph Lameter
, (Wed May 14, 1:57 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 14, 2:27 pm)
mm notifier: Notifications when pages are unmapped.
, Christoph Lameter
, (Fri May 16, 9:38 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Robin Holt
, (Wed May 14, 12:22 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 14, 12:56 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 7, 8:55 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Wed May 7, 6:22 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 7, 6:44 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Wed May 7, 6:58 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 7, 7:09 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Wed May 7, 7:02 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrew Morton
, (Wed May 7, 6:31 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Wed May 7, 6:44 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Benjamin Herrenschmidt
, (Wed May 7, 7:28 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Wed May 7, 7:45 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Wed May 7, 9:34 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Nick Piggin
, (Tue May 13, 8:14 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Benjamin Herrenschmidt
, (Wed May 14, 1:43 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Jack Steiner
, (Wed May 14, 9:15 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Nick Piggin
, (Wed May 14, 2:06 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrew Morton
, (Wed May 7, 6:59 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Wed May 7, 7:39 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 7, 9:02 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Wed May 7, 9:26 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Christoph Lameter
, (Wed May 7, 9:12 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Wed May 7, 10:56 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Christoph Lameter
, (Wed May 7, 11:10 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Wed May 7, 11:41 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Thu May 8, 12:14 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Thu May 8, 1:20 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Thu May 8, 11:03 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Thu May 8, 12:11 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Peter Zijlstra
, (Fri May 9, 2:37 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Fri May 9, 2:55 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Peter Zijlstra
, (Fri May 9, 3:04 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Thu May 8, 6:01 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Pekka Enberg
, (Thu May 8, 1:27 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Pekka Enberg
, (Thu May 8, 1:30 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Thu May 8, 1:49 am)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 7, 9:32 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 7, 7:19 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Christoph Lameter
, (Wed May 7, 7:39 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 7, 8:03 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Christoph Lameter
, (Wed May 7, 8:56 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 7, 9:39 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Wed May 7, 9:52 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 7, 9:57 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Andrea Arcangeli
, (Wed May 7, 10:24 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 7, 10:32 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Linus Torvalds
, (Wed May 7, 9:07 pm)
Re: [PATCH 08 of 11] anon-vma-rwsem
, Robin Holt
, (Wed May 7, 8:52 pm)
[PATCH 07 of 11] i_mmap_rwsem
, Andrea Arcangeli
, (Wed May 7, 10:35 am)
[PATCH 06 of 11] rwsem contended
, Andrea Arcangeli
, (Wed May 7, 10:35 am)
[PATCH 05 of 11] unmap vmas tlb flushing
, Andrea Arcangeli
, (Wed May 7, 10:35 am)
Re: [PATCH 05 of 11] unmap vmas tlb flushing
, Rik van Riel
, (Wed May 7, 1:46 pm)
[PATCH 04 of 11] free-pgtables
, Andrea Arcangeli
, (Wed May 7, 10:35 am)
Re: [PATCH 04 of 11] free-pgtables
, Rik van Riel
, (Wed May 7, 1:41 pm)
[PATCH 03 of 11] invalidate_page outside PT lock
, Andrea Arcangeli
, (Wed May 7, 10:35 am)
Re: [PATCH 03 of 11] invalidate_page outside PT lock
, Rik van Riel
, (Wed May 7, 1:39 pm)
Re: [PATCH 03 of 11] invalidate_page outside PT lock
, Andrea Arcangeli
, (Wed May 7, 1:57 pm)
[PATCH 01 of 11] mmu-notifier-core
, Andrea Arcangeli
, (Wed May 7, 10:35 am)
Re: [PATCH 01 of 11] mmu-notifier-core
, Andrew Morton
, (Wed May 7, 4:05 pm)
Re: [PATCH 01 of 11] mmu-notifier-core
, Linus Torvalds
, (Wed May 7, 4:30 pm)
Re: [PATCH 01 of 11] mmu-notifier-core
, Andrea Arcangeli
, (Wed May 7, 5:58 pm)
Re: [PATCH 01 of 11] mmu-notifier-core
, Linus Torvalds
, (Wed May 7, 6:11 pm)
Re: [PATCH 01 of 11] mmu-notifier-core
, Andrea Arcangeli
, (Wed May 7, 6:27 pm)
Re: [PATCH 01 of 11] mmu-notifier-core
, Linus Torvalds
, (Wed May 7, 7:00 pm)
Re: [PATCH 01 of 11] mmu-notifier-core
, Andrea Arcangeli
, (Wed May 7, 6:37 pm)
Re: [PATCH 01 of 11] mmu-notifier-core
, Linus Torvalds
, (Wed May 7, 7:38 pm)
Re: [ofa-general] Re: [PATCH 01 of 11] mmu-notifier-core
, Roland Dreier
, (Wed May 7, 6:31 pm)
Re: [ofa-general] Re: [PATCH 01 of 11] mmu-notifier-core
, Andrea Arcangeli
, (Wed May 7, 6:39 pm)
Re: [ofa-general] Re: [PATCH 01 of 11] mmu-notifier-core
, Linus Torvalds
, (Wed May 7, 7:03 pm)
Re: [PATCH 01 of 11] mmu-notifier-core
, Andrew Morton
, (Wed May 7, 4:02 pm)
Re: [PATCH 01 of 11] mmu-notifier-core
, Rik van Riel
, (Wed May 7, 1:35 pm)
[PATCH 02 of 11] get_task_mm
, Andrea Arcangeli
, (Wed May 7, 10:35 am)
Re: [PATCH 02 of 11] get_task_mm
, Robin Holt
, (Wed May 7, 11:59 am)
Re: [PATCH 02 of 11] get_task_mm
, Andrea Arcangeli
, (Wed May 7, 12:20 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Faik Uygur
Re: Linux 2.6.21-rc1
pageexec
Re: [stable] Linux 2.6.25.10
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
git
:
linux-netdev
:
Mark Lord
Re: 2.6.25-rc8: FTP transfer errors
Natalie Protasevich
[BUG] New Kernel Bugs
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
11 users
and
859 guests
online.
Online users
strcmp
summerspring
floodcleaningc
seolondonbcrlox
donnamarie007
Kedar Sovani
aussienewlin
officetoynerd
powerplatecdho
autoinsurancsd
summerspring
Syndicate