mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
Target/iser: Wait for proper cleanup before unloading
commit f5ebec9629 upstream.
disconnected_handler works are scheduled on system_wq.
When attempting to unload, first make sure all works
have cleaned up.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
674a2365f0
commit
029a894631
|
|
@ -2332,6 +2332,7 @@ static int __init isert_init(void)
|
|||
|
||||
static void __exit isert_exit(void)
|
||||
{
|
||||
flush_scheduled_work();
|
||||
kmem_cache_destroy(isert_cmd_cache);
|
||||
destroy_workqueue(isert_comp_wq);
|
||||
destroy_workqueue(isert_rx_wq);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user