]> git.baikalelectronics.ru Git - kernel.git/commit
IPoIB: change init sequence ordering
authorDoug Ledford <dledford@redhat.com>
Wed, 10 Dec 2014 16:47:02 +0000 (11:47 -0500)
committerRoland Dreier <roland@purestorage.com>
Tue, 16 Dec 2014 02:11:15 +0000 (18:11 -0800)
commit6a7a93ab9e01443050200652cb48d4ca5629fc89
tree0f36ea1c32ea745e2efd51d36940f382ab28bd5e
parent5befa49e21c013bb309a806eea64d50e1a608609
IPoIB: change init sequence ordering

In preparation for using per device work queues, we need to move the
start of the neighbor thread task to after ipoib_ib_dev_init and move
the destruction of the neighbor task to before ipoib_ib_dev_cleanup.
Otherwise we will end up freeing our workqueue with work possibly
still on it.

Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c