Florian-Ewald Mueller 3821bbad0d 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>
2024-04-08 21:14:37 -07:00
..
2024-04-01 11:53:37 -06:00
2024-04-01 11:53:37 -06:00
2024-04-01 11:53:37 -06:00
2024-04-01 11:53:37 -06:00
2023-11-17 14:41:14 -05:00
2024-04-01 11:53:37 -06:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:07 -05:00
2024-02-20 14:22:51 -05:00
2024-02-20 14:22:51 -05:00
2024-04-01 11:53:37 -06:00
2024-02-20 14:22:51 -05:00
2023-02-14 14:23:07 -05:00
2024-03-11 17:11:28 -07:00
2024-04-01 11:53:37 -06:00
2023-02-14 14:23:06 -05:00
2024-03-21 14:41:00 -07:00
2024-03-11 11:43:44 -07:00
2024-03-06 08:59:53 -08:00
2024-03-06 08:59:53 -08:00
2024-03-06 08:59:53 -08:00
2024-03-11 11:43:44 -07:00