diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2014-05-19 17:44:25 +0300 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-05-20 11:18:43 -0700 |
commit | f5ebec9629cf78eeeea4b8258882a9f439ab2404 (patch) | |
tree | 3f477694b5110597484c8442eee59e014469a2fe | |
parent | 88c4015fda6d014392f76d3b1688347950d7a12d (diff) | |
download | op-kernel-dev-f5ebec9629cf78eeeea4b8258882a9f439ab2404.zip op-kernel-dev-f5ebec9629cf78eeeea4b8258882a9f439ab2404.tar.gz |
Target/iser: Wait for proper cleanup before unloading
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>
Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index ef47ff6..c687951 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c @@ -3287,6 +3287,7 @@ destroy_rx_wq: static void __exit isert_exit(void) { + flush_scheduled_work(); destroy_workqueue(isert_comp_wq); destroy_workqueue(isert_rx_wq); iscsit_unregister_transport(&iser_target_transport); |