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:
parent
56e9ce41a5
commit
52545a237b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user