diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2019-10-08 00:16:51 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-10-07 21:19:10 -0600 |
commit | 8148f0b5647a831c5d94b59da240c8e76dbacae9 (patch) | |
tree | 2f9511fed5b78056a63ea1c8104e27f79f69823a /block/blk.h | |
parent | a2e80f6f044526e00a788aa8e1ed72b1911f4534 (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 'block/blk.h')
0 files changed, 0 insertions, 0 deletions