diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2021-09-27 15:03:27 -0700 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2021-10-18 06:17:02 -0600 |
| commit | bce0363ed84af8e8e27df464b2082f4b5f58b57e (patch) | |
| tree | e402c278902eab9834a9d123d00c8a3ff6e23669 /tools/perf/scripts/python/bin | |
| parent | 32f64cad97187f4aed50aca3ed1b5a51a00f848b (diff) | |
| download | linux-bce0363ed84af8e8e27df464b2082f4b5f58b57e.tar.gz linux-bce0363ed84af8e8e27df464b2082f4b5f58b57e.zip | |
block/mq-deadline: Stop using per-CPU counters
Calculating the sum over all CPUs of per-CPU counters frequently is
inefficient. Hence switch from per-CPU to individual counters. Three
counters are protected by the mq-deadline spinlock since these are
only accessed from contexts that already hold that spinlock. The fourth
counter is atomic because protecting it with the mq-deadline spinlock
would trigger lock contention.
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Niklas Cassel <Niklas.Cassel@wdc.com>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20210927220328.1410161-4-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
