Whamcloud - gitweb
LU-10015 o2iblnd: fix race at kiblnd_connect_peer 34/29134/6
authorAlexander Boyko <alexander.boyko@seagate.com>
Thu, 21 Sep 2017 13:13:27 +0000 (16:13 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 1 Nov 2017 04:57:18 +0000 (04:57 +0000)
commit576551cb97c6a5efb27d8afc59ad60550dde51ce
tree474c5c0fca422acc3e2147420ef9eef3b14d3fc0
parentb27575d1b91d93c0f3f7f4e4a9744db37686a504
LU-10015 o2iblnd: fix race at kiblnd_connect_peer

cmid will be destroyed at OFED if kiblnd_cm_callback return error.
if error happen before the end of kiblnd_connect_peer, it will touch
destroyed cmid and fail as
(o2iblnd_cb.c:1315:kiblnd_connect_peer())
            ASSERTION( cmid->device != ((void *)0) ) failed:

Seagate-bug-id: MRP-4592
Signed-off-by: Alexander Boyko <alexander.boyko@seagate.com>
Change-Id: I83eb5bceeb567acef0316498b936d25d6c6ccd95
Reviewed-on: https://review.whamcloud.com/29134
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alexey Lyashkov <c17817@cray.com>
Reviewed-by: Doug Oucharek <dougso@me.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/klnds/o2iblnd/o2iblnd_cb.c