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)
commit802934b2cfde463b72cc1b9bc1c081895a90be53
tree248f0398c49bbf71371d0a9b1eb2151b53290993
parent694d0d0bb2030d2e36df73e2d23d5770511dbc8d
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: b0b477c7e0dd ("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