Commit 1cf2ce82 authored by Xiao Yang's avatar Xiao Yang Committed by Jason Gunthorpe

RDMA/rxe: Remove the is_user members of struct rxe_sq/rxe_rq/rxe_srq

The is_user members of struct rxe_sq/rxe_rq/rxe_srq are unsed since
commit ae6e843f ("RDMA/rxe: Add memory barriers to kernel queues").
In this case, it is fine to remove them directly.

Link: https://lore.kernel.org/r/20210930094813.226888-2-yangx.jy@fujitsu.comSigned-off-by: default avatarXiao Yang <yangx.jy@fujitsu.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 0de71d7a
...@@ -307,8 +307,6 @@ static int rxe_qp_init_resp(struct rxe_dev *rxe, struct rxe_qp *qp, ...@@ -307,8 +307,6 @@ static int rxe_qp_init_resp(struct rxe_dev *rxe, struct rxe_qp *qp,
spin_lock_init(&qp->rq.producer_lock); spin_lock_init(&qp->rq.producer_lock);
spin_lock_init(&qp->rq.consumer_lock); spin_lock_init(&qp->rq.consumer_lock);
qp->rq.is_user = qp->is_user;
skb_queue_head_init(&qp->resp_pkts); skb_queue_head_init(&qp->resp_pkts);
rxe_init_task(rxe, &qp->resp.task, qp, rxe_init_task(rxe, &qp->resp.task, qp,
......
...@@ -86,7 +86,6 @@ int rxe_srq_from_init(struct rxe_dev *rxe, struct rxe_srq *srq, ...@@ -86,7 +86,6 @@ int rxe_srq_from_init(struct rxe_dev *rxe, struct rxe_srq *srq,
srq->srq_num = srq->pelem.index; srq->srq_num = srq->pelem.index;
srq->rq.max_wr = init->attr.max_wr; srq->rq.max_wr = init->attr.max_wr;
srq->rq.max_sge = init->attr.max_sge; srq->rq.max_sge = init->attr.max_sge;
srq->rq.is_user = srq->is_user;
srq_wqe_size = rcv_wqe_size(srq->rq.max_sge); srq_wqe_size = rcv_wqe_size(srq->rq.max_sge);
......
...@@ -267,9 +267,6 @@ static int rxe_create_srq(struct ib_srq *ibsrq, struct ib_srq_init_attr *init, ...@@ -267,9 +267,6 @@ static int rxe_create_srq(struct ib_srq *ibsrq, struct ib_srq_init_attr *init,
if (udata->outlen < sizeof(*uresp)) if (udata->outlen < sizeof(*uresp))
return -EINVAL; return -EINVAL;
uresp = udata->outbuf; uresp = udata->outbuf;
srq->is_user = true;
} else {
srq->is_user = false;
} }
err = rxe_srq_chk_attr(rxe, NULL, &init->attr, IB_SRQ_INIT_MASK); err = rxe_srq_chk_attr(rxe, NULL, &init->attr, IB_SRQ_INIT_MASK);
......
...@@ -77,7 +77,6 @@ enum wqe_state { ...@@ -77,7 +77,6 @@ enum wqe_state {
}; };
struct rxe_sq { struct rxe_sq {
bool is_user;
int max_wr; int max_wr;
int max_sge; int max_sge;
int max_inline; int max_inline;
...@@ -86,7 +85,6 @@ struct rxe_sq { ...@@ -86,7 +85,6 @@ struct rxe_sq {
}; };
struct rxe_rq { struct rxe_rq {
bool is_user;
int max_wr; int max_wr;
int max_sge; int max_sge;
spinlock_t producer_lock; /* guard queue producer */ spinlock_t producer_lock; /* guard queue producer */
...@@ -100,7 +98,6 @@ struct rxe_srq { ...@@ -100,7 +98,6 @@ struct rxe_srq {
struct rxe_pd *pd; struct rxe_pd *pd;
struct rxe_rq rq; struct rxe_rq rq;
u32 srq_num; u32 srq_num;
bool is_user;
int limit; int limit;
int error; int error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment