document that the pipe fo_stat routine doesn't need locks because it's

a read operation.

Requested by: rwatson
This commit is contained in:
Alfred Perlstein 2002-06-28 22:35:12 +00:00
parent 56e9ce41a5
commit 52545a237b

View File

@ -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;