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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98989

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;