|
@@ -519,10 +519,12 @@ static void iowait_sdma_drained(struct iowait *wait)
|
|
* do the flush work until that QP's
|
|
* do the flush work until that QP's
|
|
* sdma work has finished.
|
|
* sdma work has finished.
|
|
*/
|
|
*/
|
|
|
|
+ spin_lock(&qp->s_lock);
|
|
if (qp->s_flags & RVT_S_WAIT_DMA) {
|
|
if (qp->s_flags & RVT_S_WAIT_DMA) {
|
|
qp->s_flags &= ~RVT_S_WAIT_DMA;
|
|
qp->s_flags &= ~RVT_S_WAIT_DMA;
|
|
hfi1_schedule_send(qp);
|
|
hfi1_schedule_send(qp);
|
|
}
|
|
}
|
|
|
|
+ spin_unlock(&qp->s_lock);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|