]> git.baikalelectronics.ru Git - kernel.git/commit
blk-stat: don't use this_cpu_ptr() in a preemptable section
authorJens Axboe <axboe@fb.com>
Tue, 9 May 2017 17:39:56 +0000 (11:39 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 10 May 2017 13:40:18 +0000 (07:40 -0600)
commit93f201abaf348b0fbe058b79df01c04f97678b81
tree67770332a697a8496a60c75ca8583dec06b3ceda
parent7460e3914b358db824ab2daba7795a6009bb25b4
blk-stat: don't use this_cpu_ptr() in a preemptable section

If PREEMPT_RCU is enabled, rcu_read_lock() isn't strong enough
for us to use this_cpu_ptr() in that section. Use the safer
get/put_cpu_ptr() variants instead.

Reported-by: Mike Galbraith <efault@gmx.de>
Fixes: a155d2b716da ("blk-stat: convert to callback-based statistics reporting")
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-stat.c