summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhsu <hsu@FreeBSD.org>2003-02-16 02:15:15 +0000
committerhsu <hsu@FreeBSD.org>2003-02-16 02:15:15 +0000
commit762f64befa2de7c091621551a2a9444e0cab2e96 (patch)
tree2abf315e0bf862a5010d22f6273fcc1d8f9e7a06
parentef91f3388a42801e8e91401cc9ec19e45e8941f4 (diff)
downloadFreeBSD-src-762f64befa2de7c091621551a2a9444e0cab2e96.zip
FreeBSD-src-762f64befa2de7c091621551a2a9444e0cab2e96.tar.gz
Remove extraneous FILEDESC_LOCK around atomic read.
-rw-r--r--sys/kern/vfs_extattr.c2
-rw-r--r--sys/kern/vfs_syscalls.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index b78d545..0c89a94 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -652,9 +652,7 @@ kern_open(struct thread *td, char *path, enum uio_seg pathseg, int flags,
if (error)
return (error);
fp = nfp;
- FILEDESC_LOCK(fdp);
cmode = ((mode &~ fdp->fd_cmask) & ALLPERMS) &~ S_ISTXT;
- FILEDESC_UNLOCK(fdp);
NDINIT(&nd, LOOKUP, FOLLOW, pathseg, path, td);
td->td_dupfd = -indx - 1; /* XXX check for fdopen */
/*
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index b78d545..0c89a94 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -652,9 +652,7 @@ kern_open(struct thread *td, char *path, enum uio_seg pathseg, int flags,
if (error)
return (error);
fp = nfp;
- FILEDESC_LOCK(fdp);
cmode = ((mode &~ fdp->fd_cmask) & ALLPERMS) &~ S_ISTXT;
- FILEDESC_UNLOCK(fdp);
NDINIT(&nd, LOOKUP, FOLLOW, pathseg, path, td);
td->td_dupfd = -indx - 1; /* XXX check for fdopen */
/*
OpenPOWER on IntegriCloud