Skip to content

Commit

Permalink
md: fix the checking of wrong work queue
Browse files Browse the repository at this point in the history
commit cf0b9b4 upstream.

It should check md_rdev_misc_wq instead of md_misc_wq.

Fixes: cc1ffe6 ("md: add new workqueue for delete rdev")
Cc: <stable@vger.kernel.org> # v5.8+
Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Guoqing Jiang authored and gregkh committed Nov 5, 2020
1 parent be4e2dc commit deb81ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/md.c
Expand Up @@ -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)
Expand Down

0 comments on commit deb81ba

Please sign in to comment.