]> git.baikalelectronics.ru Git - kernel.git/commit
RxRPC: Fix the conversion to iov_iter
authorDavid Howells <dhowells@redhat.com>
Wed, 1 Apr 2015 13:06:00 +0000 (14:06 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 1 Apr 2015 13:06:00 +0000 (14:06 +0100)
commitffa2fd24fe8a4e0d4c297eb3052c14e36b18548c
tree286d1ea04a97305a0b97f62f505081027b98b5bd
parent0def125dfe5f74b2b1276288b214ad0c0969d84c
RxRPC: Fix the conversion to iov_iter

This commit:

commit 736ffa3961a983c968e451448a722c160b41500c
Author: Al Viro <viro@zeniv.linux.org.uk>
Date:   Thu Nov 27 21:44:24 2014 -0500
Subject: rxrpc: switch rxrpc_send_data() to iov_iter primitives

incorrectly changes a do-while loop into a while loop in rxrpc_send_data().

Unfortunately, at least one pass through the loop is required - even if
there is no data - so that the packet the closes the send phase can be
sent if MSG_MORE is not set.

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