commit | 8148f0b5647a831c5d94b59da240c8e76dbacae9 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Tue Oct 08 00:16:51 2019 +0300 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Oct 07 21:19:10 2019 -0600 |
tree | 2f9511fed5b78056a63ea1c8104e27f79f69823a | |
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>