Skip to contentSkip to conversation

s390/qeth: Remove redundant 'flush_workqueue()' calls

PATCH Applied Xu Wang 2 participants 2 messages Feb 16, 2022 – Feb 18, 2022

Subsystems (4)
lore
Share & tools
lore

Xu Wang

author
#0 lore raw

PATCH 1/1 s390/qeth: Remove redundant 'flush_workqueue()' calls

'destroy_workqueue()' already drains the queue before destroying it, so there is no need to flush it explicitly.

Remove the redundant 'flush_workqueue()' calls.

---
 drivers/s390/net/qeth_l3_main.c | 1 -
 1 file changed, 1 deletion(-)
drivers/s390/net/qeth_l3_main.c +0 -1
index 9251ad276ee8..d2f422a9a4f7 100644
@@ -1961,7 +1961,6 @@ static void qeth_l3_remove_device(struct ccwgroup_device *cgdev)
 	if (card->dev->reg_state == NETREG_REGISTERED)
 		unregister_netdev(card->dev);
 
-	flush_workqueue(card->cmd_wq);
 	destroy_workqueue(card->cmd_wq);
 	qeth_l3_clear_ip_htable(card, 0);
 	qeth_l3_clear_ipato_list(card);
Signature · 1 line
2.25.1
#1 lore raw
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Wed, 16 Feb 2022 07:51:55 +0000 you wrote:

'destroy_workqueue()' already drains the queue before destroying it, so there is no need to flush it explicitly.

Remove the redundant 'flush_workqueue()' calls.

[...]

Here is the summary with links:
- [net-next] s390/qeth: Remove redundant 'flush_workqueue()' calls

    https://git.kernel.org/netdev/net-next/c/129c77b5692d

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html