]> git.baikalelectronics.ru Git - kernel.git/commit
dm round robin: do not use this_cpu_ptr() without having preemption disabled
authorMike Snitzer <snitzer@redhat.com>
Fri, 5 Aug 2016 16:29:06 +0000 (12:29 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 15 Aug 2016 13:23:14 +0000 (09:23 -0400)
commit84362e38819c1072e2bcfb9c1e22f8106011a6c5
tree248f0398c49bbf71371d0a9b1eb2151b53290993
parent92eda0ff5e2879da54cd299e1946d13cb37b1706
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: Benjamin Block <bblock@linux.vnet.ibm.com>
Fixes: 419f57f5618e ("dm round robin: use percpu 'repeat_count' and 'current_path'")
Cc: stable@vger.kernel.org # 4.6+
Suggested-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-round-robin.c