]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
md: fix the checking of wrong work queue
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Thu, 8 Oct 2020 03:19:09 +0000 (05:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:51:31 +0000 (11:51 +0100)
commit cf0b9b4821a2955f8a23813ef8f422208ced9bd7 upstream.

It should check md_rdev_misc_wq instead of md_misc_wq.

Fixes: cc1ffe61c026 ("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>
drivers/md/md.c

index 60727820702300139654292f0eee7e23db9038d4..cd3c249d8609cabddfc917dfa1bc46617b91d8a0 100644 (file)
@@ -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)