Commit 8e1f52df authored by Dean Luick's avatar Dean Luick Committed by Doug Ledford

IB/hfi1: Remove unused uctxt->subpid and uctxt->pid

These are no longer needed.
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarDean Luick <dean.luick@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 72720ddf
...@@ -727,7 +727,6 @@ static int hfi1_file_close(struct inode *inode, struct file *fp) ...@@ -727,7 +727,6 @@ static int hfi1_file_close(struct inode *inode, struct file *fp)
if (--uctxt->cnt) { if (--uctxt->cnt) {
uctxt->active_slaves &= ~(1 << fdata->subctxt); uctxt->active_slaves &= ~(1 << fdata->subctxt);
uctxt->subpid[fdata->subctxt] = 0;
mutex_unlock(&hfi1_mutex); mutex_unlock(&hfi1_mutex);
goto done; goto done;
} }
...@@ -753,7 +752,6 @@ static int hfi1_file_close(struct inode *inode, struct file *fp) ...@@ -753,7 +752,6 @@ static int hfi1_file_close(struct inode *inode, struct file *fp)
write_kctxt_csr(dd, uctxt->sc->hw_context, SEND_CTXT_CHECK_ENABLE, write_kctxt_csr(dd, uctxt->sc->hw_context, SEND_CTXT_CHECK_ENABLE,
hfi1_pkt_default_send_ctxt_mask(dd, uctxt->sc->type)); hfi1_pkt_default_send_ctxt_mask(dd, uctxt->sc->type));
sc_disable(uctxt->sc); sc_disable(uctxt->sc);
uctxt->pid = 0;
spin_unlock_irqrestore(&dd->uctxt_lock, flags); spin_unlock_irqrestore(&dd->uctxt_lock, flags);
dd->rcd[uctxt->ctxt] = NULL; dd->rcd[uctxt->ctxt] = NULL;
...@@ -893,7 +891,6 @@ static int find_shared_ctxt(struct file *fp, ...@@ -893,7 +891,6 @@ static int find_shared_ctxt(struct file *fp,
} }
fd->uctxt = uctxt; fd->uctxt = uctxt;
fd->subctxt = uctxt->cnt++; fd->subctxt = uctxt->cnt++;
uctxt->subpid[fd->subctxt] = current->pid;
uctxt->active_slaves |= 1 << fd->subctxt; uctxt->active_slaves |= 1 << fd->subctxt;
ret = 1; ret = 1;
goto done; goto done;
...@@ -978,7 +975,6 @@ static int allocate_ctxt(struct file *fp, struct hfi1_devdata *dd, ...@@ -978,7 +975,6 @@ static int allocate_ctxt(struct file *fp, struct hfi1_devdata *dd,
return ret; return ret;
} }
uctxt->userversion = uinfo->userversion; uctxt->userversion = uinfo->userversion;
uctxt->pid = current->pid;
uctxt->flags = HFI1_CAP_UGET(MASK); uctxt->flags = HFI1_CAP_UGET(MASK);
init_waitqueue_head(&uctxt->wait); init_waitqueue_head(&uctxt->wait);
strlcpy(uctxt->comm, current->comm, sizeof(uctxt->comm)); strlcpy(uctxt->comm, current->comm, sizeof(uctxt->comm));
......
...@@ -270,9 +270,6 @@ struct hfi1_ctxtdata { ...@@ -270,9 +270,6 @@ struct hfi1_ctxtdata {
u32 urgent; u32 urgent;
/* saved total number of polled urgent packets for poll edge trigger */ /* saved total number of polled urgent packets for poll edge trigger */
u32 urgent_poll; u32 urgent_poll;
/* pid of process using this ctxt */
pid_t pid;
pid_t subpid[HFI1_MAX_SHARED_CTXTS];
/* same size as task_struct .comm[], command that opened context */ /* same size as task_struct .comm[], command that opened context */
char comm[TASK_COMM_LEN]; char comm[TASK_COMM_LEN];
/* so file ops can get at unit */ /* so file ops can get at unit */
......
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