Messages in this thread |  | | Date | Wed, 13 Nov 2013 12:49:13 +0100 | From | Martin Schwidefsky <> | Subject | Re: [PATCH 1/2] sched/mm: add finish_switch_mm function |
| |
On Wed, 13 Nov 2013 12:41:43 +0100 Peter Zijlstra <peterz@infradead.org> wrote:
> On Wed, Nov 13, 2013 at 09:16:13AM +0100, Martin Schwidefsky wrote: > > The switch_mm function is called with the task_lock and/or with > > request queue lock. Add finish_switch_mm to allow an architecture > > to execute some code after the mm has been switched but without > > any locks held. One use case is the s390 architecture which will > > use this to wait for the completion of TLB flush operations. > > This so reminds me of what finish_arch_post_lock_switch() was supposed > to do. See commit: 01f23e1630d9 ("sched/arch: Introduce the > finish_arch_post_lock_switch() scheduler callback"). > > Now you hook into more places; but maybe you can Catalin can come up > with something you both can use?
finish_task_switch() has the call to finish_arch_post_lock_switch(), but idle_task_exit() and use_mm() do not have the call. If it is safe to add finish_arch_post_lock_switch() there as well I could use it for s390.
-- blue skies, Martin.
"Reality continues to ruin my life." - Calvin.
|  |