s390/qeth: Remove redundant 'flush_workqueue()' calls
Subsystems (4)
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
@@ -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
Quoted 15 lines · Xu Wang
'
destroy_workqueue()' already drains the queue before destroying it, so there is no need to flush it explicitly.Remove the redundant '
flush_workqueue()' calls.Signed-off-by Xu Wang <[email protected]>--- drivers/s390/net/qeth_l3_main.c | 1 - 1 file changed, 1 deletion(-)drivers/s390/net/qeth_l3_main.c +0
-0
drivers/s390/net/qeth_l3_main.c static void qeth_l3_remove_device(struct ccwgroup_device *cgdev) · line 1966
Quoted 7 lines
drivers/s390/net/qeth_l3_main.c +0
-1@@ -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);
Thanks for pointing this out!
IMO, this can go to net-next as it is not a fix, but removes redundancy.
Jakub Kicinski
maintainerQuoted 19 lines · On Fri, 14 Jan 2022 12:58:38 +0100 Alexandra Winter wrote:
Quoted 18 lines · Xu Wang
'
destroy_workqueue()' already drains the queue before destroying it, so there is no need to flush it explicitly.Remove the redundant '
flush_workqueue()' calls.Signed-off-by Xu Wang <[email protected]>--- drivers/s390/net/qeth_l3_main.c | 1 - 1 file changed, 1 deletion(-)drivers/s390/net/qeth_l3_main.c +0
-0@@ -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);
Quoted 8 lines
drivers/s390/net/qeth_l3_main.c static void qeth_l3_remove_device(struct ccwgroup_device *cgdev) · line 1966
Quoted 4 lines
drivers/s390/net/qeth_l3_main.c +0
-1-flush_workqueue (card->cmd_wq);destroy_workqueue (card->cmd_wq);qeth_l3_clear_ip_htable (card,0 );qeth_l3_clear_ipato_list (card);Thanks for pointing this out!
IMO, this can go to net-next as it is not a fix, but removes redundancy.
Agreed.
Quoted 1 line
Acked-by Alexandra Winter <[email protected]>
Please keep Alexandra's ack and repost in ~1.5 week -- after 5.17-rc1 is tagged.