Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251896
b: refs/heads/master
c: 83e9502
h: refs/heads/master
v: v3
  • Loading branch information
Nir Muchtar authored and Roland Dreier committed May 25, 2011
1 parent 89e17d3 commit 4f2f397
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 753f618ae03a699cc30044d64eea84165016dc6e
refs/heads/master: 83e9502d8db142822f3302e6a46a45082d3a27b7
6 changes: 6 additions & 0 deletions trunk/drivers/infiniband/core/cma.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ struct rdma_id_private {
u32 seq_num;
u32 qkey;
u32 qp_num;
pid_t owner;
u8 srq;
u8 tos;
u8 reuseaddr;
Expand Down Expand Up @@ -420,6 +421,7 @@ struct rdma_cm_id *rdma_create_id(rdma_cm_event_handler event_handler,
if (!id_priv)
return ERR_PTR(-ENOMEM);

id_priv->owner = task_pid_nr(current);
id_priv->state = RDMA_CM_IDLE;
id_priv->id.context = context;
id_priv->id.event_handler = event_handler;
Expand Down Expand Up @@ -2746,6 +2748,9 @@ int rdma_accept(struct rdma_cm_id *id, struct rdma_conn_param *conn_param)
int ret;

id_priv = container_of(id, struct rdma_id_private, id);

id_priv->owner = task_pid_nr(current);

if (!cma_comp(id_priv, RDMA_CM_CONNECT))
return -EINVAL;

Expand Down Expand Up @@ -3385,6 +3390,7 @@ static int cma_get_id_stats(struct sk_buff *skb, struct netlink_callback *cb)
}
}

id_stats->pid = id_priv->owner;
id_stats->port_space = id->ps;
id_stats->cm_state = id_priv->state;
id_stats->qp_num = id_priv->qp_num;
Expand Down

0 comments on commit 4f2f397

Please sign in to comment.