]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: Remove redundant 'flush_workqueue()' calls
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 18 Dec 2023 15:32:23 +0000 (00:32 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Dec 2023 09:41:49 +0000 (10:41 +0100)
commit84af59bcab8e66925c6649b4a9bd9266c85cac29
treeec01a008bb0431abc171383f0c38ad2e54ff2487
parenta33bb607a1b2be13713096ce11299b51e99e4644
ksmbd: Remove redundant 'flush_workqueue()' calls

[ Upstream commit e8d585b2f68c0b10c966ee55146de043429085a3 ]

'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 <linkinjeon@kernel.org>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/ksmbd_work.c
fs/ksmbd/transport_rdma.c