Re: [PATCH 2/2] IB/qib: fix race between qib_error_qp() and receive packet processing

2010-08-04 Thread Roland Dreier
thanks, applied both. -- Roland Dreier rola...@cisco.com || For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/index.html -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to majord...@vger.kernel.org More

[PATCH 2/2] IB/qib: fix race between qib_error_qp() and receive packet processing

2010-08-02 Thread Ralph Campbell
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