Skip to content
Commit 479c778a authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Andrei Vagin
Browse files

page-xfer: Introduce fully asynchronous read



Add a queue of async-read jobs into page-xfer. When the
page_server_sk gets a read event from epoll it reads as
many bytes into page_server_iov + page buffer as recv
allows and returns.

Once the full iov+data is ready the requestor is notified
and the next async read is started.

This patch removes calls to recv(...MSG_WAITALL) from all
remote async paths.

Signed-off-by: default avatarPavel Emelyanov <xemul@virtuozzo.com>
Acked-by: default avatarMike Rapoport <rppt@linux.vnet.ibm.com>
parent adea705b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment