Commit 13a21aa
Karan Kumar
scsi: fnic: Remove redundant flush_workqueue() calls
JIRA: https://issues.redhat.com/browse/RHEL-64440
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);
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Link: https://lore.kernel.org/r/20250312074320.1430175-1-nichen@iscas.ac.cn
Reviewed-by: Karan Tilak Kumar <kartilak@cisco.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 160d6ec)
Signed-off-by: Karan Kumar <karkumar@redhat.com>1 parent ab6c18a commit 13a21aa
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1377 | 1377 | | |
1378 | 1378 | | |
1379 | 1379 | | |
1380 | | - | |
1381 | | - | |
| 1380 | + | |
1382 | 1381 | | |
1383 | | - | |
| 1382 | + | |
1384 | 1383 | | |
1385 | 1384 | | |
1386 | 1385 | | |
| |||
0 commit comments