mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Merge branch 'wip/dl-for-rc' into wip/dl-for-next
The fix for IB port statistics initialization ("IB/core: Fix querying
total rdma stats") is needed before we take a follow-on patch to
for-next.
Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
commit
525a2c651c
21 changed files with 106 additions and 106 deletions
|
|
@ -608,7 +608,7 @@ static inline void rvt_qp_wqe_reserve(
|
|||
/**
|
||||
* rvt_qp_wqe_unreserve - clean reserved operation
|
||||
* @qp - the rvt qp
|
||||
* @wqe - the send wqe
|
||||
* @flags - send wqe flags
|
||||
*
|
||||
* This decrements the reserve use count.
|
||||
*
|
||||
|
|
@ -620,11 +620,9 @@ static inline void rvt_qp_wqe_reserve(
|
|||
* the compiler does not juggle the order of the s_last
|
||||
* ring index and the decrementing of s_reserved_used.
|
||||
*/
|
||||
static inline void rvt_qp_wqe_unreserve(
|
||||
struct rvt_qp *qp,
|
||||
struct rvt_swqe *wqe)
|
||||
static inline void rvt_qp_wqe_unreserve(struct rvt_qp *qp, int flags)
|
||||
{
|
||||
if (unlikely(wqe->wr.send_flags & RVT_SEND_RESERVE_USED)) {
|
||||
if (unlikely(flags & RVT_SEND_RESERVE_USED)) {
|
||||
atomic_dec(&qp->s_reserved_used);
|
||||
/* insure no compiler re-order up to s_last change */
|
||||
smp_mb__after_atomic();
|
||||
|
|
@ -853,6 +851,7 @@ rvt_qp_complete_swqe(struct rvt_qp *qp,
|
|||
u32 byte_len, last;
|
||||
int flags = wqe->wr.send_flags;
|
||||
|
||||
rvt_qp_wqe_unreserve(qp, flags);
|
||||
rvt_put_qp_swqe(qp, wqe);
|
||||
|
||||
need_completion =
|
||||
|
|
|
|||
Loading…
Reference in a new issue