diff options
author | Joe Thornber <ejt@redhat.com> | 2023-03-24 23:01:03 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-03-30 15:57:50 -0400 |
commit | 791188065be0d3715e6696412ab9c7a5f6b52bd3 (patch) | |
tree | 9a91f18e076ec9ca4440ed75c0e169619970280d /drivers/ps3/ps3-vuart.c | |
parent | 450e8dee51aa6fa1dd0f64073e88235f1a77b035 (diff) |
dm bufio: add lock_history optimization for cache iterators
Sometimes it is beneficial to repeatedly get and drop locks as part of
an iteration. Introduce lock_history struct to help avoid redundant
drop and gets of the same lock.
Optimizes cache_iterate, cache_mark_many and cache_evict.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/ps3/ps3-vuart.c')
0 files changed, 0 insertions, 0 deletions