Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 361c81db authored by Wander Lairson Costa's avatar Wander Lairson Costa Committed by Jens Axboe
Browse files

blktrace: switch trace spinlock to a raw spinlock


The running_trace_lock protects running_trace_list and is acquired
within the tracepoint which implies disabled preemption. The spinlock_t
typed lock can not be acquired with disabled preemption on PREEMPT_RT
because it becomes a sleeping lock.
The runtime of the tracepoint depends on the number of entries in
running_trace_list and has no limit. The blk-tracer is considered debug
code and higher latencies here are okay.

Make running_trace_lock a raw_spinlock_t.

Signed-off-by: default avatarWander Lairson Costa <wander@redhat.com>
Link: https://lore.kernel.org/r/20211220192827.38297-1-wander@redhat.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 5ef16305
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment