Target/iser: Wait for proper cleanup before unloading
authorSagi Grimberg <sagig@mellanox.com>
Mon, 19 May 2014 14:44:25 +0000 (17:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Jul 2014 03:12:00 +0000 (20:12 -0700)
commitc75a5476ee099f5534402c6b42d34c89f7acb31c
tree9ee194580dfe2b470e9cc7f9fadce6938a05eb71
parent555470b4c5fd168bebf2f758bc727dca9ca8af69
Target/iser: Wait for proper cleanup before unloading

commit f5ebec9629cf78eeeea4b8258882a9f439ab2404 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>
drivers/infiniband/ulp/isert/ib_isert.c