Skip to content
Commit 8df44129 authored by David Howells's avatar David Howells
Browse files

pipe: Check for ring full inside of the spinlock in pipe_write()



Make pipe_write() check to see if the ring has become full between it
taking the pipe mutex, checking the ring status and then taking the
spinlock.

This can happen if a notification is written into the pipe as that happens
without the pipe mutex.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 7e25a73f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment