]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/cxl: Add the fault handling cpu to mm cpumask
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 27 Jul 2017 06:24:55 +0000 (11:54 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 17 Aug 2017 13:31:52 +0000 (23:31 +1000)
commit3cd39d92e9ce7286ca39d570044a34f39ab5cd71
tree248a04eb03e004057d208b0ede68903bf2e13462
parent79076e7e9870554281d1bc07495ca79b5703fa3f
powerpc/mm/cxl: Add the fault handling cpu to mm cpumask

We use mm cpumask for serializing against lockless page table walk.
Anybody who is doing a lockless page table walk is expected to disable
irq and only cpus in mm cpumask is expected do the lockless walk. This
ensure that a THP split can send IPI to only cpus in the mm cpumask,
to make sure there are no parallel lockless page table walk.

Add the CAPI fault handling cpu to the mm cpumask so that we can do
the lockless page table walk while inserting hash page table entries.

Reviewed-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/pgtable-book3s64.c
drivers/misc/cxl/fault.c