Fix some lock ordering issues in the pipe code.
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 8 May 2008 01:31:01 +0000 (01:31 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 8 May 2008 01:31:01 +0000 (01:31 +0000)
commit39b0a1afb784a19b233094ad3a4bce7f18b841de
treefa2d9ab2d3fcbb9af6ec0f22103476f2e1c3e144
parent8f1f6170ad2220eb4fbd447009459d4ea74e5b44
Fix some lock ordering issues in the pipe code.

In particular fix a bug in the pipe_write() code when multiple writers
are present that could cause garbage to be injected into the pipe due
to a resize possibly occuring while wpipe->pipe_buffer.cnt is non-zero.
sys/kern/sys_pipe.c