Re: [PATCH 3/3] mm/mmu_gather: send tlb_remove_table_smp_sync IPI only to CPUs in kernel mode
From: Frederic Weisbecker
Date: Wed Apr 05 2023 - 08:31:42 EST
On Wed, Apr 05, 2023 at 02:05:13PM +0200, Frederic Weisbecker wrote:
> On Wed, Apr 05, 2023 at 01:41:48PM +0200, Peter Zijlstra wrote:
> 1) It has the advantage to check context tracking _after_ the llist_add(), so
> it really can't be misused ordering-wise.
>
> 2) The IPI callback is always enqueued and then executed upon return
> from userland. The ordering makes sure it will either IPI or execute
> upon return to userspace.
*from userspace