diff options
author | 2024-10-22 15:13:39 +0800 | |
---|---|---|
committer | 2024-11-04 17:39:31 +0100 | |
commit | f484697e619a83ecc370443a34746379ad99d204 (patch) | |
tree | 63bdf5b8de9075c414540643ef739b61a51e09fd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dm cache: fix out-of-bounds access to the dirty bitset when resizing (diff) | |
download | wireguard-linux-f484697e619a83ecc370443a34746379ad99d204.tar.xz wireguard-linux-f484697e619a83ecc370443a34746379ad99d204.zip |
dm cache: optimize dirty bit checking with find_next_bit when resizing
When shrinking the fast device, dm-cache iteratively searches for a
dirty bit among the cache blocks to be dropped, which is less efficient.
Use find_next_bit instead, as it is twice as fast as the iterative
approach with test_bit.
Signed-off-by: Ming-Hung Tsai <mtsai@redhat.com>
Fixes: f494a9c6b1b6 ("dm cache: cache shrinking support")
Cc: stable@vger.kernel.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Acked-by: Joe Thornber <thornber@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions