locking/percpu-rwsem: Move __this_cpu_inc() into the slowpath
authorPeter Zijlstra <peterz@infradead.org>
Wed, 30 Oct 2019 19:17:51 +0000 (20:17 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 11 Feb 2020 12:10:54 +0000 (13:10 +0100)
commit71365d40232110f7b029befc9033ea311d680611
treeda9cf44abea7c38e244c2b2dd7e6ef587c4146dc
parent206c98ffbeda588dbbd9d272505c42acbc364a30
locking/percpu-rwsem: Move __this_cpu_inc() into the slowpath

As preparation to rework __percpu_down_read() move the
__this_cpu_inc() into it.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Davidlohr Bueso <dbueso@suse.de>
Acked-by: Will Deacon <will@kernel.org>
Acked-by: Waiman Long <longman@redhat.com>
Tested-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://lkml.kernel.org/r/20200131151540.041600199@infradead.org
include/linux/percpu-rwsem.h
kernel/locking/percpu-rwsem.c