diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-09-16 20:48:12 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-09-21 11:58:36 -0400 |
commit | 2a3ccfdbeb6a5f832d7203e230799f1ffa46e0fc (patch) | |
tree | 785c1299b4b77f0c7ccb1f14ec0735101c808775 /drivers/infiniband/core/uverbs_cmd.c | |
parent | RDMA/umem: Avoid synchronize_srcu in the ODP MR destruction path (diff) | |
download | linux-dev-2a3ccfdbeb6a5f832d7203e230799f1ffa46e0fc.tar.xz linux-dev-2a3ccfdbeb6a5f832d7203e230799f1ffa46e0fc.zip |
RDMA/uverbs: Get rid of ucontext->tgid
Nothing uses this now, just delete it.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/uverbs_cmd.c')
-rw-r--r-- | drivers/infiniband/core/uverbs_cmd.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/infiniband/core/uverbs_cmd.c b/drivers/infiniband/core/uverbs_cmd.c index d77b0b9793c7..91d3e4029cd5 100644 --- a/drivers/infiniband/core/uverbs_cmd.c +++ b/drivers/infiniband/core/uverbs_cmd.c @@ -117,9 +117,6 @@ ssize_t ib_uverbs_get_context(struct ib_uverbs_file *file, /* ufile is required when some objects are released */ ucontext->ufile = file; - rcu_read_lock(); - ucontext->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); - rcu_read_unlock(); ucontext->closing = false; ucontext->cleanup_retryable = false; @@ -169,7 +166,6 @@ err_fd: put_unused_fd(resp.async_fd); err_free: - put_pid(ucontext->tgid); ib_dev->dealloc_ucontext(ucontext); err_alloc: |