diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2018-12-06 19:41:20 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-12-10 18:30:37 +0300 |
commit | 1226b8dd0e91331cfab500f305b2c264445a0392 (patch) | |
tree | 347679d6d2eafea136d7d93529e16cd6fbe87609 /kernel/fail_function.c | |
parent | 5b18b5a737600fd20ba2045f320d5926ebbf341a (diff) | |
download | linux-1226b8dd0e91331cfab500f305b2c264445a0392.tar.xz |
block: switch to per-cpu in-flight counters
Now when part_round_stats is gone, we can switch to per-cpu in-flight
counters.
We use the local-atomic type local_t, so that if part_inc_in_flight or
part_dec_in_flight is reentrantly called from an interrupt, the value will
be correct.
The other counters could be corrupted due to reentrant interrupt, but the
corruption only results in slight counter skew - the in_flight counter
must be exact, so it needs local_t.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/fail_function.c')
0 files changed, 0 insertions, 0 deletions