]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3f01c39e659e07c64cbd4df0afacea8bbcf34e9a
tree01cd1b646eef48374f50c10fd0cd35792854ffd1
parentf49df525465c8d27a9bf0632dd6f1d19f89d267c
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