From: Michael S. Tsirkin Date: Mon, 21 May 2007 12:04:59 +0000 (+0300) Subject: IPoIB/cm: Fix SRQ WR leak X-Git-Tag: v2.6.22-rc3~108^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=518b1646f8a31904ca637b8df0c1e31c34a7a3c2;p=pandora-kernel.git IPoIB/cm: Fix SRQ WR leak SRQ WR leakage has been observed with IPoIB/CM: e.g. flipping ports on and off will, with time, leak out all WRs and then all connections will start getting RNR NAKs. Fix this in the way suggested by spec: move the QP being destroyed to the error state, wait for "Last WQE Reached" event and then post WR on a "drain QP" connected to the same CQ. Once we observe a completion on the drain QP, it's safe to call ib_destroy_qp. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed