]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Requeue call for recvmsg if more data
authorDavid Howells <dhowells@redhat.com>
Tue, 13 Sep 2016 21:36:21 +0000 (22:36 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 13 Sep 2016 21:36:21 +0000 (22:36 +0100)
commit954c43d12f955a95c1ea77432e0b74c5895e16a6
tree4ca28cac584fc743b04740fcaf07a1b992b7bb9c
parentab25cefbf3ec56d943c3f8a865cfa61f85b9d4e4
rxrpc: Requeue call for recvmsg if more data

rxrpc_recvmsg() needs to make sure that the call it has just been
processing gets requeued for further attention if the buffer has been
filled and there's more data to be consumed.  The softirq producer only
queues the call and wakes the socket if it fills the first slot in the
window, so userspace might end up sleeping forever otherwise, despite there
being data available.

This is not a problem provided the userspace buffer is big enough or it
empties the buffer completely before more data comes in.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/recvmsg.c