diff options
| author | Jiangong.Han <jiangong.han@windriver.com> | 2026-07-01 16:21:02 +0800 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-07-15 15:58:05 +0200 |
| commit | c92d632f8638df0c5b644739b1fd06e36a7630fb (patch) | |
| tree | 49aa2d54162a82c117c8c83a1c5b45d7255eccea /tools/perf/scripts/python/bin/task-analyzer-record | |
| parent | 0729a9b4ee5a4c30e4c3641bc8fc6d164e8617b4 (diff) | |
dm: use `clear_and_wake_up_bit()` in device mapper
The helper was introduced in 'commit 8236b0ae31c83 ("bdi: wake up
concurrent wb_shutdown() callers.")' as a generic way of doing the same
sequence of operations:
clear_bit_unlock();
smp_mb__after_atomic();
wake_up_bit();
The helper was first implemented to avoid bugs caused by forgetting to
call `wake_up_bit()` after `clear_bit_unlock()`. Replace the open-coded
sequence with the helper to avoid duplicate code and reduce code paths
to maintain.
Suggested-by: code@agatha.dev
Link: https://kernelnewbies.org/Beginner%20Cleanup%20and%20Refactor%20Tasks%20by%20Agatha%20Isabelle%20Moreira#task_001
Link: https://kernelnewbies.org/Beginner%20Cleanup%20and%20Refactor%20Tasks%20by%20Agatha%20Isabelle%20Moreira#task_002
Signed-off-by: Jiangong.Han <jiangong.han@windriver.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-record')
0 files changed, 0 insertions, 0 deletions
