diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2019-10-07 23:16:51 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-10-08 05:19:10 +0200 |
commit | 8148f0b5647a831c5d94b59da240c8e76dbacae9 (patch) | |
tree | 2f9511fed5b78056a63ea1c8104e27f79f69823a /block/blk-exec.c | |
parent | blk-mq: Embed counters into struct mq_inflight (diff) | |
download | linux-8148f0b5647a831c5d94b59da240c8e76dbacae9.tar.xz linux-8148f0b5647a831c5d94b59da240c8e76dbacae9.zip |
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 'block/blk-exec.c')
0 files changed, 0 insertions, 0 deletions