commit | d3738123986954ba3abbd96b595f5176b50c3f5d | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Tue May 09 11:39:56 2017 -0600 |
committer | Jens Axboe <axboe@fb.com> | Wed May 10 07:40:18 2017 -0600 |
tree | 67770332a697a8496a60c75ca8583dec06b3ceda | |
parent | 340ff3216799a947fe0b07bed8f0409ffc716be9 [diff] |
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: 34dbad5d26e2 ("blk-stat: convert to callback-based statistics reporting") Signed-off-by: Jens Axboe <axboe@fb.com>