提交 671a52f2 编写于 作者: R ran jianping 提交者: Martin K. Petersen

scsi: fnic: Remove unneeded flush_workqueue()

All work currently pending will be done first by calling
destroy_workqueue(). There is no need to flush it explicitly.

Link: https://lore.kernel.org/r/20220424065406.3228528-1-ran.jianping@zte.com.cnReported-by: NZeal Robot <zealci@zte.com.cn>
Signed-off-by: Nran jianping <ran.jianping@zte.com.cn>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 cf97628f
...@@ -1146,10 +1146,8 @@ static void __exit fnic_cleanup_module(void) ...@@ -1146,10 +1146,8 @@ static void __exit fnic_cleanup_module(void)
{ {
pci_unregister_driver(&fnic_driver); pci_unregister_driver(&fnic_driver);
destroy_workqueue(fnic_event_queue); destroy_workqueue(fnic_event_queue);
if (fnic_fip_queue) { if (fnic_fip_queue)
flush_workqueue(fnic_fip_queue);
destroy_workqueue(fnic_fip_queue); destroy_workqueue(fnic_fip_queue);
}
kmem_cache_destroy(fnic_sgl_cache[FNIC_SGL_CACHE_MAX]); kmem_cache_destroy(fnic_sgl_cache[FNIC_SGL_CACHE_MAX]);
kmem_cache_destroy(fnic_sgl_cache[FNIC_SGL_CACHE_DFLT]); kmem_cache_destroy(fnic_sgl_cache[FNIC_SGL_CACHE_DFLT]);
kmem_cache_destroy(fnic_io_req_cache); kmem_cache_destroy(fnic_io_req_cache);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册