Skip to content

Commit e8d585b

Browse files
tititiou36smfrench
authored andcommitted
ksmbd: 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. This was generated with coccinelle: @@ expression E; @@ - flush_workqueue(E); destroy_workqueue(E); Acked-by: Namjae Jeon <[email protected]> Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 341b160 commit e8d585b

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

fs/ksmbd/ksmbd_work.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ int ksmbd_workqueue_init(void)
6969

7070
void ksmbd_workqueue_destroy(void)
7171
{
72-
flush_workqueue(ksmbd_wq);
7372
destroy_workqueue(ksmbd_wq);
7473
ksmbd_wq = NULL;
7574
}

fs/ksmbd/transport_rdma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2043,7 +2043,6 @@ int ksmbd_rdma_destroy(void)
20432043
smb_direct_listener.cm_id = NULL;
20442044

20452045
if (smb_direct_wq) {
2046-
flush_workqueue(smb_direct_wq);
20472046
destroy_workqueue(smb_direct_wq);
20482047
smb_direct_wq = NULL;
20492048
}

0 commit comments

Comments
 (0)