mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 06:56:46 +07:00
IB/ipath: Fix SRQ limit event causing dropped CQ entry
A silly programming error causes a CQ entry to not be generated if a SRQ limit event is generated. Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
parent
947d7617a1
commit
9f9630d5e1
@ -202,6 +202,7 @@ int ipath_get_rwqe(struct ipath_qp *qp, int wr_id_only)
|
||||
wq->tail = tail;
|
||||
|
||||
ret = 1;
|
||||
qp->r_wrid_valid = 1;
|
||||
if (handler) {
|
||||
u32 n;
|
||||
|
||||
@ -229,7 +230,6 @@ int ipath_get_rwqe(struct ipath_qp *qp, int wr_id_only)
|
||||
}
|
||||
}
|
||||
spin_unlock_irqrestore(&rq->lock, flags);
|
||||
qp->r_wrid_valid = 1;
|
||||
|
||||
bail:
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user