diff options
author | Guoqing Jiang <guoqing.jiang@cloud.ionos.com> | 2020-10-08 05:19:09 +0200 |
---|---|---|
committer | Song Liu <songliubraving@fb.com> | 2020-10-08 22:36:30 -0700 |
commit | cf0b9b4821a2955f8a23813ef8f422208ced9bd7 (patch) | |
tree | a380377e1b0e73df10eff4b7163c4a1b64df1421 /drivers/md | |
parent | d837f7277f56e70d82b3a4a037d744854e62f387 (diff) | |
download | linux-stable-cf0b9b4821a2955f8a23813ef8f422208ced9bd7.tar.gz linux-stable-cf0b9b4821a2955f8a23813ef8f422208ced9bd7.tar.bz2 linux-stable-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.c | 2 |
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) |