locking/percpu-rwsem: Extract __percpu_down_read_trylock()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 31 Oct 2019 11:34:23 +0000 (12:34 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 11 Feb 2020 12:10:55 +0000 (13:10 +0100)
commit75ff64572e497578e238fefbdff221c96f29067a
tree1ad12e94e5eee534c451c298642444d79a4c082b
parent71365d40232110f7b029befc9033ea311d680611
locking/percpu-rwsem: Extract __percpu_down_read_trylock()

In preparation for removing the embedded rwsem and building a custom
lock, extract the read-trylock primitive.

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.098485539@infradead.org
kernel/locking/percpu-rwsem.c