# \[PATCH\] md/raid5: unset WQ\_CPU\_INTENSIVE for raid5 unbound workqueue

- Subsystems: SOFTWARE RAID (Multiple Disks) SUPPORT, THE REST
- Maintainers: Song Liu, Yu Kuai, Linus Torvalds
- Status: LANDED (3ec8db61e785 · 2025-07-12 09:52)
- Landed in mainline as 3ec8db61e785 on 2025-07-12.
- List: linux-raid
- 3 messages, 3 authors
- Page: https://ratatoskr.run/linux-raid/2025/06/3075430/t

## \[PATCH\] md/raid5: unset WQ\_CPU\_INTENSIVE for raid5 unbound workqueue

- From: Ryo Takakura \<hidden\>
- Date: 2025-06-01 01:37:13 
- Message: https://ratatoskr.run/linux-raid/2025/06/3075430.md

```text
When specified with WQ_CPU_INTENSIVE, the workqueue doesn't
participate in concurrency management. This behaviour is already
accounted for WQ_UNBOUND workqueues given that they are assigned
to their own worker threads.

Unset WQ_CPU_INTENSIVE as the use of flag has no effect when
used with WQ_UNBOUND.

Signed-off-by: Ryo Takakura <redacted>
---

Hi!

My understanding is that unbound wqs are served by non concurrency
managed worker threads and is not tracked by wq_cpu_intensive_report(),
so this should have no change in behaviour.

Sincerely,
Ryo Takakura

---
 drivers/md/raid5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 638938316..8f3b45161 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -9048,7 +9048,7 @@ static int __init raid5_init(void)
 	int ret;
 
 	raid5_wq = alloc_workqueue("raid5wq",
-		WQ_UNBOUND|WQ_MEM_RECLAIM|WQ_CPU_INTENSIVE|WQ_SYSFS, 0);
+		WQ_UNBOUND|WQ_MEM_RECLAIM|WQ_SYSFS, 0);
 	if (!raid5_wq)
 		return -ENOMEM;
 
-- 
2.34.1

```

## Re: \[PATCH\] md/raid5: unset WQ\_CPU\_INTENSIVE for raid5 unbound workqueue

- From: Tejun Heo \<tj@kernel.org\>
- Date: 2025-06-02 17:23:23 
- Message: https://ratatoskr.run/linux-raid/2025/06/3076940.md

```text
On Sun, Jun 01, 2025 at 10:37:02AM +0900, Ryo Takakura wrote:
> When specified with WQ_CPU_INTENSIVE, the workqueue doesn't
> participate in concurrency management. This behaviour is already
> accounted for WQ_UNBOUND workqueues given that they are assigned
> to their own worker threads.
> 
> Unset WQ_CPU_INTENSIVE as the use of flag has no effect when
> used with WQ_UNBOUND.
> 
> Signed-off-by: Ryo Takakura <redacted>

Acked-by: Tejun Heo <tj@kernel.org>

Thanks.

-- 
tejun
```

## Re: \[PATCH\] md/raid5: unset WQ\_CPU\_INTENSIVE for raid5 unbound workqueue

- From: Yu Kuai \<hidden\>
- Date: 2025-06-14 06:42:55 
- Message: https://ratatoskr.run/linux-raid/2025/06/3092134.md

```text
在 2025/06/01 9:37, Ryo Takakura 写道:
> When specified with WQ_CPU_INTENSIVE, the workqueue doesn't
> participate in concurrency management. This behaviour is already
> accounted for WQ_UNBOUND workqueues given that they are assigned
> to their own worker threads.
>
> Unset WQ_CPU_INTENSIVE as the use of flag has no effect when
> used with WQ_UNBOUND.
>
> Signed-off-by: Ryo Takakura<redacted>
> ---

Applied to md-6.16

Thanks
Kuai

```
