freebsd-nq/sys/fs/fifofs
Konstantin Belousov f950879e16 The pipe_poll() performs lockless access to the vnode to test
fifo_iseof() condition, allowing the v_fifoinfo to be reset and freed
by fifo_cleanup().

Precalculate EOF at the places were fo_wgen is changed, and cache the
state in a new pipe state flag PIPE_SAMEWGEN.

Reported and tested by:	bf
Submitted by:	gianni
MFC after:	1 week (a backport)
2012-03-07 07:31:50 +00:00
..
fifo_vnops.c The pipe_poll() performs lockless access to the vnode to test 2012-03-07 07:31:50 +00:00
fifo.h The pipe_poll() performs lockless access to the vnode to test 2012-03-07 07:31:50 +00:00