Commit cf0b9b48 authored by Guoqing Jiang's avatar Guoqing Jiang Committed by Song Liu

md: fix the checking of wrong work queue

It should check md_rdev_misc_wq instead of md_misc_wq.

Fixes: cc1ffe61 ("md: add new workqueue for delete rdev")
Cc: <stable@vger.kernel.org> # v5.8+
Signed-off-by: default avatarGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: default avatarSong Liu <songliubraving@fb.com>
parent d837f727
...@@ -9565,7 +9565,7 @@ static int __init md_init(void) ...@@ -9565,7 +9565,7 @@ static int __init md_init(void)
goto err_misc_wq; goto err_misc_wq;
md_rdev_misc_wq = alloc_workqueue("md_rdev_misc", 0, 0); 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; goto err_rdev_misc_wq;
if ((ret = register_blkdev(MD_MAJOR, "md")) < 0) if ((ret = register_blkdev(MD_MAJOR, "md")) < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment