Linux-Raid Archives on lore.kernel.org
 help / color / Atom feed
* [PATCH] md: fix the checking of wrong work queue
@ 2020-10-08  3:19 Guoqing Jiang
  2020-10-08  6:36 ` Song Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Guoqing Jiang @ 2020-10-08  3:19 UTC (permalink / raw)
  To: song; +Cc: linux-raid, Guoqing Jiang

It should check md_rdev_misc_wq instead of md_misc_wq.

Fixes: cc1ffe6 ("md: add new workqueue for delete rdev")
Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
---
 drivers/md/md.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/md/md.c b/drivers/md/md.c
index 6072782..cd3c249 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -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)
-- 
2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] md: fix the checking of wrong work queue
  2020-10-08  3:19 [PATCH] md: fix the checking of wrong work queue Guoqing Jiang
@ 2020-10-08  6:36 ` Song Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Song Liu @ 2020-10-08  6:36 UTC (permalink / raw)
  To: Guoqing Jiang; +Cc: linux-raid

On Wed, Oct 7, 2020 at 8:20 PM Guoqing Jiang
<guoqing.jiang@cloud.ionos.com> wrote:
>
> It should check md_rdev_misc_wq instead of md_misc_wq.
>
> Fixes: cc1ffe6 ("md: add new workqueue for delete rdev")
> Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>

Applied to md-next.

Thanks,
Song

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-08  3:19 [PATCH] md: fix the checking of wrong work queue Guoqing Jiang
2020-10-08  6:36 ` Song Liu

Linux-Raid Archives on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-raid/0 linux-raid/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-raid linux-raid/ https://lore.kernel.org/linux-raid \
		linux-raid@vger.kernel.org
	public-inbox-index linux-raid

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-raid


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git