Whamcloud - gitweb
LU-519 o2iblnd: check wr_id returned by ib_poll_cq 47/12747/3
authorLiang Zhen <liang.zhen@intel.com>
Mon, 17 Nov 2014 06:35:25 +0000 (14:35 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 12 Jan 2016 02:45:02 +0000 (02:45 +0000)
commitf571d0fdb78516b615574cfcd903436eba975fc5
tree364f3bf59d343dce779d92904dce4419c116db3b
parent05bf10903eba13db3d152f2725de56243123e7c5
LU-519 o2iblnd: check wr_id returned by ib_poll_cq

If ib_poll_cq returned +ve without initialising ib_wc::wr_id (bug
in driver), then o2iblnd will run into unpredictable situation
because ib_wc::wr_id may refer to stale tx/rx pointer in stack.

It indicates bug in HCA driver if this happened, ko2iblnd should
output console error then close current connection.

This patch could also be helpful for LU-5271

Signed-off-by: Liang Zhen <liang.zhen@intel.com>
Change-Id: I7851e009bb6cd7df3c299b23b6f338b86ba73b68
Reviewed-on: http://review.whamcloud.com/12747
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Isaac Huang <he.huang@intel.com>
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/klnds/o2iblnd/o2iblnd.h
lnet/klnds/o2iblnd/o2iblnd_cb.c