diff options
author | Guoqing Jiang <guoqing.jiang@linux.dev> | 2023-12-03 17:26:55 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2023-12-04 20:13:30 -0400 |
commit | b7a2768a1cc3de8947b1fe4b1084de2f5464c606 (patch) | |
tree | 5800410b5b4841ab7a4d7fc2cdc25958e4486808 /drivers | |
parent | 0b988c1bee28b48f7e4f264ff17d0d3e8817aa69 (diff) | |
download | lwn-b7a2768a1cc3de8947b1fe4b1084de2f5464c606.tar.gz lwn-b7a2768a1cc3de8947b1fe4b1084de2f5464c606.zip |
RDMA/siw: Call orq_get_current if possible
Use orq_get_current() in siw_orq_empty().
Link: https://lore.kernel.org/r/20231203092655.28102-5-guoqing.jiang@linux.dev
Acked-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/sw/siw/siw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/siw/siw.h b/drivers/infiniband/sw/siw/siw.h index 2edba2a864bb..75253f2b3e3d 100644 --- a/drivers/infiniband/sw/siw/siw.h +++ b/drivers/infiniband/sw/siw/siw.h @@ -657,7 +657,7 @@ static inline struct siw_sqe *orq_get_free(struct siw_qp *qp) static inline int siw_orq_empty(struct siw_qp *qp) { - return qp->orq[qp->orq_get % qp->attrs.orq_size].flags == 0 ? 1 : 0; + return orq_get_current(qp)->flags == 0 ? 1 : 0; } static inline struct siw_sqe *irq_alloc_free(struct siw_qp *qp) |