diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-12-24 17:13:01 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-12-24 17:13:01 +0000 |
commit | fc37f21a156939a16090d443be9db2078727ab3e (patch) | |
tree | 808e9a086576a944869fbd954ae7353ce3b9c763 /sys/kern/vfs_extattr.c | |
parent | 912d84fa39ca176c72b4a298434a9608a5b24a36 (diff) | |
download | FreeBSD-src-fc37f21a156939a16090d443be9db2078727ab3e.zip FreeBSD-src-fc37f21a156939a16090d443be9db2078727ab3e.tar.gz |
Document that when we are addressing an open()/close() race, the reason
we call vn_close() manually rather than letting fdrop() take care of it
is that we haven't yet hooked up the various 'struct file' fields.
Diffstat (limited to 'sys/kern/vfs_extattr.c')
-rw-r--r-- | sys/kern/vfs_extattr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index a8900dc..d4fa3f1 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); |