From: Ralph Campbell Date: Mon, 2 Aug 2010 22:39:30 +0000 (+0000) Subject: IB/qib: Fix race between qib_error_qp() and receive packet processing X-Git-Tag: v2.6.36-rc1~492^2^7~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5210c12b7c4e34e904f4820a4abd048a2d75db5;p=pandora-kernel.git IB/qib: Fix race between qib_error_qp() and receive packet processing When transitioning a QP to the error state, in progress RWQEs need to be marked complete. This also involves releasing the reference count to the memory regions referenced in the SGEs. The locking in the receive packet processing wasn't sufficient to prevent qib_error_qp() from modifying the r_sge state at the same time, thus leading to kernel panics. Signed-off-by: Ralph Campbell Signed-off-by: Roland Dreier --- Reading git-diff-tree failed