Whamcloud - gitweb
LU-10015 o2iblnd: fix race at kiblnd_connect_peer 81/29881/2
authorAlexander Boyko <alexander.boyko@seagate.com>
Thu, 21 Sep 2017 13:13:27 +0000 (16:13 +0300)
committerJohn L. Hammond <john.hammond@intel.com>
Fri, 17 Nov 2017 00:27:49 +0000 (00:27 +0000)
commit2ee8689905bbbc1337facd4bfc8c3486f0157505
tree3fd7761487f8ed36b3acf0d3a80eed255ab9d2e5
parent53c5e392ac10e6d4db6b127f4471530dea0d103d
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:

Lustre-change: https://review.whamcloud.com/29134
Lustre-commit: 576551cb97c6a5efb27d8afc59ad60550dde51ce

Seagate-bug-id: MRP-4592
Signed-off-by: Alexander Boyko <alexander.boyko@seagate.com>
Change-Id: I83eb5bceeb567acef0316498b936d25d6c6ccd95
Reviewed-by: Alexey Lyashkov <c17817@cray.com>
Reviewed-by: Doug Oucharek <dougso@me.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/29881
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lnet/klnds/o2iblnd/o2iblnd_cb.c