summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2003-12-24 17:13:01 +0000
committerRobert Watson <rwatson@FreeBSD.org>2003-12-24 17:13:01 +0000
commit69546b2fbbf9fdf55ebfd7c19dd48c785140c470 (patch)
tree808e9a086576a944869fbd954ae7353ce3b9c763
parentcec4ab6a04fd6e6212e1cf237d080d103bd06284 (diff)
Notes
-rw-r--r--sys/kern/vfs_extattr.c2
-rw-r--r--sys/kern/vfs_syscalls.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index a8900dc90dda..d4fa3f10003d 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -1018,6 +1018,8 @@ kern_open(struct thread *td, char *path, enum uio_seg pathseg, int flags,
* Handle the case where someone closed the file (via its file
* descriptor) while we were blocked. The end result should look
* like opening the file succeeded but it was immediately closed.
+ * We call vn_close() manually because we haven't yet hooked up
+ * the various 'struct file' fields.
*/
FILEDESC_LOCK(fdp);
FILE_LOCK(fp);
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index a8900dc90dda..d4fa3f10003d 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1018,6 +1018,8 @@ kern_open(struct thread *td, char *path, enum uio_seg pathseg, int flags,
* Handle the case where someone closed the file (via its file
* descriptor) while we were blocked. The end result should look
* like opening the file succeeded but it was immediately closed.
+ * We call vn_close() manually because we haven't yet hooked up
+ * the various 'struct file' fields.
*/
FILEDESC_LOCK(fdp);
FILE_LOCK(fp);