RDMA/uverbs: Cleanup wq/srq context usage from uverbs layer
authorYishai Hadas <yishaih@mellanox.com>
Wed, 6 May 2020 08:24:38 +0000 (11:24 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Sun, 17 May 2020 23:27:25 +0000 (20:27 -0300)
Both wq_context and srq_context are some leftover from the past in uverbs
layer, they are not really in use, drop them.

Link: https://lore.kernel.org/r/20200506082444.14502-5-leon@kernel.org
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_cmd.c

index 060b4ebbd2ba4d7b393f33c887d5ac80d8471502..dc8fe1a4eba3a99e767511bda4a17186b64af458 100644 (file)
@@ -2954,7 +2954,6 @@ static int ib_uverbs_ex_create_wq(struct uverbs_attr_bundle *attrs)
        wq_init_attr.cq = cq;
        wq_init_attr.max_sge = cmd.max_sge;
        wq_init_attr.max_wr = cmd.max_wr;
-       wq_init_attr.wq_context = attrs->ufile;
        wq_init_attr.wq_type = cmd.wq_type;
        wq_init_attr.event_handler = ib_uverbs_wq_event_handler;
        wq_init_attr.create_flags = cmd.create_flags;
@@ -2972,7 +2971,6 @@ static int ib_uverbs_ex_create_wq(struct uverbs_attr_bundle *attrs)
        wq->cq = cq;
        wq->pd = pd;
        wq->device = pd->device;
-       wq->wq_context = wq_init_attr.wq_context;
        atomic_set(&wq->usecnt, 0);
        atomic_inc(&pd->usecnt);
        atomic_inc(&cq->usecnt);
@@ -3441,7 +3439,6 @@ static int __uverbs_create_xsrq(struct uverbs_attr_bundle *attrs,
        }
 
        attr.event_handler  = ib_uverbs_srq_event_handler;
-       attr.srq_context    = attrs->ufile;
        attr.srq_type       = cmd->srq_type;
        attr.attr.max_wr    = cmd->max_wr;
        attr.attr.max_sge   = cmd->max_sge;
@@ -3460,7 +3457,6 @@ static int __uverbs_create_xsrq(struct uverbs_attr_bundle *attrs,
        srq->srq_type      = cmd->srq_type;
        srq->uobject       = obj;
        srq->event_handler = attr.event_handler;
-       srq->srq_context   = attr.srq_context;
 
        ret = pd->device->ops.create_srq(srq, &attr, udata);
        if (ret)