summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_pipe.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-06-28 22:35:12 +0000
committeralfred <alfred@FreeBSD.org>2002-06-28 22:35:12 +0000
commitd1029cb00e4bc8ab3843feb7e4d1f06766113708 (patch)
treef26131fc7d6e93c19ccb091eefd59b61b706d8d3 /sys/kern/sys_pipe.c
parent8969d48c6a2e21220ae7000e4c28ee28457f6cfb (diff)
downloadFreeBSD-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
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r--sys/kern/sys_pipe.c4
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;
OpenPOWER on IntegriCloud