diff options
author | hsu <hsu@FreeBSD.org> | 2003-01-24 22:49:52 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 2003-01-24 22:49:52 +0000 |
commit | 2d948f2956bcc5f4e63deac3c13a5910562bcdbd (patch) | |
tree | cf3ee0567550093cad7e964ac39126b88a0d7e31 | |
parent | 1e3ba45ac07046d65cfb0d517b16eae042b36cc2 (diff) | |
download | FreeBSD-src-2d948f2956bcc5f4e63deac3c13a5910562bcdbd.zip FreeBSD-src-2d948f2956bcc5f4e63deac3c13a5910562bcdbd.tar.gz |
Remove extraneous FILEDESC_LOCKs around atomic reads.
Reviewed by: jhb
-rw-r--r-- | sys/kern/uipc_usrreq.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 92ea8b6..57b10ae 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -549,9 +549,7 @@ unp_attach(so) unp_count++; LIST_INIT(&unp->unp_refs); unp->unp_socket = so; - FILEDESC_LOCK(curproc->p_fd); unp->unp_rvnode = curthread->td_proc->p_fd->fd_rdir; - FILEDESC_UNLOCK(curproc->p_fd); LIST_INSERT_HEAD(so->so_type == SOCK_DGRAM ? &unp_dhead : &unp_shead, unp, unp_link); so->so_pcb = unp; @@ -646,9 +644,7 @@ restart: } VATTR_NULL(&vattr); vattr.va_type = VSOCK; - FILEDESC_LOCK(td->td_proc->p_fd); vattr.va_mode = (ACCESSPERMS & ~td->td_proc->p_fd->fd_cmask); - FILEDESC_UNLOCK(td->td_proc->p_fd); #ifdef MAC error = mac_check_vnode_create(td->td_ucred, nd.ni_dvp, &nd.ni_cnd, &vattr); |