diff options
author | Konstantin Khlebnikov <khlebnikov@yandex-team.ru> | 2020-05-27 07:24:18 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-27 05:21:23 -0600 |
commit | b2d76adbc0828e0f108567973bcc500ed1abc139 (patch) | |
tree | 52ec69527822f170482e23c977c1bdaa9610fb5c /block/blk-core.c | |
parent | 8ab1d40a646e753adb6814642432a093d93dbf47 (diff) | |
download | linux-stable-b2d76adbc0828e0f108567973bcc500ed1abc139.tar.gz linux-stable-b2d76adbc0828e0f108567973bcc500ed1abc139.tar.bz2 linux-stable-b2d76adbc0828e0f108567973bcc500ed1abc139.zip |
block: use __this_cpu_add() instead of access by smp_processor_id()
Most architectures have fast path to access percpu for current cpu.
The required preempt_disable() is provided by part_stat_lock().
[hch: rebased]
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-core.c')
0 files changed, 0 insertions, 0 deletions