From: Kumar Sanghvi Date: Thu, 13 Oct 2011 08:21:30 +0000 (+0530) Subject: RDMA/cxgb4: Make sure flush CQ entries are collected on connection close X-Git-Tag: v3.2-rc1~104^2^4~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01e7da6ba53ca4d6189a1eae45607c0331c871f2;p=pandora-kernel.git RDMA/cxgb4: Make sure flush CQ entries are collected on connection close At the time when a peer closes the connection, iw_cxgb4 will not send a cq event if ibqp.uobject exists. In that case, its possible for a user application to get blocked in ibv_get_cq_event(). To resolve this, call the cq's comp_handler to unblock any read from ibv_get_cq_event(). This will trigger userspace to poll the cq and collect flush status completions for any pending work requests. Signed-off-by: Kumar Sanghvi Acked-by: Steve Wise Signed-off-by: Roland Dreier --- Reading git-diff-tree failed