Need to hold the same SMP lock for (knote) list traversal as for
list manipulation. This lock also protects read-modify-write operations on the pipe_state field.
This commit is contained in:
parent
33e1dc7738
commit
c31548c820
@ -824,8 +824,8 @@ pipe_direct_write(wpipe, uio)
|
||||
PIPE_GET_GIANT(wpipe);
|
||||
pipe_destroy_write_buffer(wpipe);
|
||||
PIPE_DROP_GIANT(wpipe);
|
||||
pipeunlock(wpipe);
|
||||
pipeselwakeup(wpipe);
|
||||
pipeunlock(wpipe);
|
||||
error = EPIPE;
|
||||
goto error1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user