[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220801021736.1593949-1-ye.xingchen@zte.com.cn>
Date: Mon, 1 Aug 2022 02:17:36 +0000
From: cgel.zte@...il.com
To: linux-kernel@...r.kernel.org
Cc: ye xingchen <ye.xingchen@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH linux-next] rapidio:rio_cm:Remove the redundant 'flush_workqueue()' calls
From: ye xingchen <ye.xingchen@....com.cn>
calls 'destroy_workqueue()' already drains the queue before destroying it,
so there is no need to flush it explicitly.So,remove the redundant
'flush_workqueue()' calls.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: ye xingchen <ye.xingchen@....com.cn>
---
drivers/rapidio/rio_cm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/rapidio/rio_cm.c b/drivers/rapidio/rio_cm.c
index db4c265287ae..f2c0d6aa911f 100644
--- a/drivers/rapidio/rio_cm.c
+++ b/drivers/rapidio/rio_cm.c
@@ -2198,7 +2198,6 @@ static void riocm_remove_mport(struct device *dev,
if (!found)
return;
- flush_workqueue(cm->rx_wq);
destroy_workqueue(cm->rx_wq);
/* Release channels bound to this mport */
--
2.25.1
Powered by blists - more mailing lists