Skip to content

Commit cf0b9b4

Browse files
Guoqing Jiangliu-song-6
authored andcommitted
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") 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>
1 parent d837f72 commit cf0b9b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/md/md.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9565,7 +9565,7 @@ static int __init md_init(void)
95659565
goto err_misc_wq;
95669566

95679567
md_rdev_misc_wq = alloc_workqueue("md_rdev_misc", 0, 0);
9568-
if (!md_misc_wq)
9568+
if (!md_rdev_misc_wq)
95699569
goto err_rdev_misc_wq;
95709570

95719571
if ((ret = register_blkdev(MD_MAJOR, "md")) < 0)

0 commit comments

Comments
 (0)