summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>2020-10-08 05:19:09 +0200
committerSong Liu <songliubraving@fb.com>2020-10-09 07:36:30 +0200
commitcf0b9b4821a2955f8a23813ef8f422208ced9bd7 (patch)
treea380377e1b0e73df10eff4b7163c4a1b64df1421 /drivers/md
parentmd/bitmap: md_bitmap_get_counter returns wrong blocks (diff)
downloadlinux-cf0b9b4821a2955f8a23813ef8f422208ced9bd7.tar.xz
linux-cf0b9b4821a2955f8a23813ef8f422208ced9bd7.zip
md: fix the checking of wrong work queue
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>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index dfff4bb2bb20..f1c6304c79f4 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -9565,7 +9565,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)