Skip to contentSkip to conversation

md: fix the checking of wrong work queue

PATCH Applied Guoqing Jiang 2 participants 2 messages Oct 8, 2020 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 md: fix the checking of wrong work queue

It should check md_rdev_misc_wq instead of md_misc_wq.

Fixes cc1ffe6 ("md: add new workqueue for delete rdev")
---
 drivers/md/md.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/md.c +1 -1
index 6072782..cd3c249 100644
@@ -9545,7 +9545,7 @@ static int __init md_init(void)
 		goto err_misc_wq;
 
 	md_rdev_misc_wq = alloc_workqueue("md_rdev_misc", 0, 0);
-	if (!md_misc_wq)
+	if (!md_rdev_misc_wq)
 		goto err_rdev_misc_wq;
 
 	if ((ret = register_blkdev(MD_MAJOR, "md")) < 0)
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 5 lines · Guoqing Jiang

It should check md_rdev_misc_wq instead of md_misc_wq.

Fixes cc1ffe6 ("md: add new workqueue for delete rdev")

Applied to md-next.

Thanks,
Song