Skip to content
Commit 802934b2 authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm round robin: do not use this_cpu_ptr() without having preemption disabled



Use local_irq_save() to disable preemption before calling
this_cpu_ptr().

Reported-by: default avatarBenjamin Block <bblock@linux.vnet.ibm.com>
Fixes: b0b477c7 ("dm round robin: use percpu 'repeat_count' and 'current_path'")
Cc: stable@vger.kernel.org # 4.6+
Suggested-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 694d0d0b
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