pipe: Conditionalise wakeup in pipe_read()
authorDavid Howells <dhowells@redhat.com>
Tue, 24 Sep 2019 15:07:04 +0000 (16:07 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 15 Nov 2019 16:22:54 +0000 (16:22 +0000)
commit8446487feba988a92e7649c60367510f0b0445a8
tree01cd1b646eef48374f50c10fd0cd35792854ffd1
parentb667b867344301e24f21d4a4c844675ff61d89e1
pipe: Conditionalise wakeup in pipe_read()

Only do a wakeup in pipe_read() if we made space in a completely full
buffer.  The producer shouldn't be waiting on pipe->wait otherwise.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/pipe.c