diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2002-06-28 22:35:12 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2002-06-28 22:35:12 +0000 |
commit | 52545a237b55efcf2b897fd2aabcbd8a377bdf43 (patch) | |
tree | f26131fc7d6e93c19ccb091eefd59b61b706d8d3 /sys/kern/sys_pipe.c | |
parent | 56e9ce41a55f2694c10829b5295eab000a9928a7 (diff) | |
download | src-52545a237b55efcf2b897fd2aabcbd8a377bdf43.tar.gz src-52545a237b55efcf2b897fd2aabcbd8a377bdf43.zip |
document that the pipe fo_stat routine doesn't need locks because it's
a read operation.
Requested by: rwatson
Notes
Notes:
svn path=/head/; revision=98989
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r-- | sys/kern/sys_pipe.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index c79f9ec23a07..11ab6d1b8dbe 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -1211,6 +1211,10 @@ pipe_poll(fp, events, cred, td) return (revents); } +/* + * We shouldn't need locks here as we're doing a read and this should + * be a natural race. + */ static int pipe_stat(fp, ub, td) struct file *fp; |