diff options
author | 2024-03-27 12:40:22 +0100 | |
---|---|---|
committer | 2024-04-08 21:14:37 -0700 | |
commit | 3821bbad0d0fbb6c9d77987bd54c89348752056d (patch) | |
tree | b2a08bbe97ee823f9ae531f4a760e401c3e29f29 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | md/raid5: fix deadlock that raid5d() wait for itself to clear MD_SB_CHANGE_PENDING (diff) | |
download | wireguard-linux-3821bbad0d0fbb6c9d77987bd54c89348752056d.tar.xz wireguard-linux-3821bbad0d0fbb6c9d77987bd54c89348752056d.zip |
md: add check for sleepers in md_wakeup_thread()
Check for sleeping thread before attempting its wake_up in
md_wakeup_thread() to avoid unnecessary spinlock contention.
With a 6.1 kernel, fio random read/write tests on many (>= 100)
virtual volumes, of 100 GiB each, on 3 md-raid5s on 8 SSDs each
(building a raid50), show by 3 to 4 % improved IOPS performance.
Signed-off-by: Florian-Ewald Mueller <florian-ewald.mueller@ionos.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Link: https://lore.kernel.org/r/20240327114022.74634-1-jinpu.wang@ionos.com
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions