projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b988c1
)
RDMA/siw: Call orq_get_current if possible
author
Guoqing Jiang
<guoqing.jiang@linux.dev>
Sun, 3 Dec 2023 09:26:55 +0000
(17:26 +0800)
committer
Jason Gunthorpe
<jgg@nvidia.com>
Tue, 5 Dec 2023 00:13:30 +0000
(20:13 -0400)
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>
drivers/infiniband/sw/siw/siw.h
patch
|
blob
|
history
diff --git
a/drivers/infiniband/sw/siw/siw.h
b/drivers/infiniband/sw/siw/siw.h
index 2edba2a864bbcafe88e4277d1af837ce2a443aaf..75253f2b3e3dca16f20a1579488df9df52e3810e 100644
(file)
--- 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)