diff options
author | alfred <alfred@FreeBSD.org> | 2002-06-28 22:35:12 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-06-28 22:35:12 +0000 |
commit | d1029cb00e4bc8ab3843feb7e4d1f06766113708 (patch) | |
tree | f26131fc7d6e93c19ccb091eefd59b61b706d8d3 | |
parent | 8969d48c6a2e21220ae7000e4c28ee28457f6cfb (diff) | |
download | FreeBSD-src-d1029cb00e4bc8ab3843feb7e4d1f06766113708.zip FreeBSD-src-d1029cb00e4bc8ab3843feb7e4d1f06766113708.tar.gz |
document that the pipe fo_stat routine doesn't need locks because it's
a read operation.
Requested by: rwatson
-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 c79f9ec..11ab6d1 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; |