diff options
author | Sebastian Andrzej Siewior <[email protected]> | 2017-05-24 10:15:18 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2017-05-26 10:10:37 +0200 |
commit | c5a81c8ff816d89941fe86961b286765d6ca2f5f (patch) | |
tree | e0b18776387a4f5759065ea2bfa271ea521a90bd /tools/perf/scripts/python/check-perf-trace.py | |
parent | 9596695ee1e7eedd743c43811fe68299eb005b5c (diff) |
padata: Avoid nested calls to cpus_read_lock() in pcrypt_init_padata()
pcrypt_init_padata()
cpus_read_lock()
padata_alloc_possible()
padata_alloc()
cpus_read_lock()
The nested call to cpus_read_lock() works with the current implementation,
but prevents the conversion to a percpu rwsem.
The other caller of padata_alloc_possible() is pcrypt_init_padata() which
calls from a cpus_read_lock() protected region as well.
Remove the cpus_read_lock() call in padata_alloc() and document the
calling convention.
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Tested-by: Paul E. McKenney <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Cc: Steffen Klassert <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions