summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2019-10-08 00:16:51 +0300
committerJens Axboe <axboe@kernel.dk>2019-10-07 21:19:10 -0600
commit8148f0b5647a831c5d94b59da240c8e76dbacae9 (patch)
tree2f9511fed5b78056a63ea1c8104e27f79f69823a /Kconfig
parenta2e80f6f044526e00a788aa8e1ed72b1911f4534 (diff)
blk-stat: Optimise blk_stat_add()
blk_stat_add() calls {get,put}_cpu_ptr() in a loop, which entails overhead of disabling/enabling preemption. The loop is under RCU (i.e.short) anyway, so do get_cpu() in advance. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions