* [git pull] rxrpc regression fix
@ 2015-04-10 2:36 Al Viro
2015-04-10 2:38 ` [PATCH] RxRPC: Fix the conversion to iov_iter Al Viro
2015-04-10 3:01 ` [git pull] rxrpc regression fix David Miller
0 siblings, 2 replies; 5+ messages in thread
From: Al Viro @ 2015-04-10 2:36 UTC (permalink / raw)
To: netdev; +Cc: David Miller
I've pulled a bunch of AFS stuff from dhowells; most of that
stuff is for-next fodder, but the first commit in there is a 4.0
regression; seeing that it's net/rxrpc, I think it ought to go through
your tree. Could you pull from
git://git.kernel.org/scm/pub/linux/kernel/git/viro/vfs.git rxrpc-fix
Shortlog:
David Howells (1):
RxRPC: Fix the conversion to iov_iter
Diffstat:
net/rxrpc/ar-output.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] RxRPC: Fix the conversion to iov_iter
2015-04-10 2:36 [git pull] rxrpc regression fix Al Viro
@ 2015-04-10 2:38 ` Al Viro
2015-04-10 3:01 ` [git pull] rxrpc regression fix David Miller
1 sibling, 0 replies; 5+ messages in thread
From: Al Viro @ 2015-04-10 2:38 UTC (permalink / raw)
To: netdev; +Cc: David Miller
This commit:
commit af2b040e470b470bfc881981db3c796072853eae
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.
Author: David Howells <dhowells@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
---
diff --git a/net/rxrpc/ar-output.c b/net/rxrpc/ar-output.c
index 8331c95..833a33b 100644
--- a/net/rxrpc/ar-output.c
+++ b/net/rxrpc/ar-output.c
@@ -548,7 +548,7 @@ static int rxrpc_send_data(struct kiocb *iocb,
copied = 0;
if (len > iov_iter_count(&msg->msg_iter))
len = iov_iter_count(&msg->msg_iter);
- while (len) {
+ do {
int copy;
if (!skb) {
@@ -689,7 +689,7 @@ static int rxrpc_send_data(struct kiocb *iocb,
rxrpc_queue_packet(call, skb, !iov_iter_count(&msg->msg_iter) && !more);
skb = NULL;
}
- }
+ } while (len > 0);
success:
ret = copied;
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [git pull] rxrpc regression fix
2015-04-10 2:36 [git pull] rxrpc regression fix Al Viro
2015-04-10 2:38 ` [PATCH] RxRPC: Fix the conversion to iov_iter Al Viro
@ 2015-04-10 3:01 ` David Miller
2015-04-10 3:07 ` Al Viro
1 sibling, 1 reply; 5+ messages in thread
From: David Miller @ 2015-04-10 3:01 UTC (permalink / raw)
To: viro; +Cc: netdev
From: Al Viro <viro@ZenIV.linux.org.uk>
Date: Fri, 10 Apr 2015 03:36:52 +0100
> Could you pull from
> git://git.kernel.org/scm/pub/linux/kernel/git/viro/vfs.git rxrpc-fix
[davem@localhost net]$ git pull git://git.kernel.org/scm/pub/linux/kernel/git/viro/vfs.git rxrpc-fix
fatal: remote error: access denied or repository not exported: /scm/pub/linux/kernel/git/viro/vfs.git
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [git pull] rxrpc regression fix
2015-04-10 3:01 ` [git pull] rxrpc regression fix David Miller
@ 2015-04-10 3:07 ` Al Viro
2015-04-10 3:45 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: Al Viro @ 2015-04-10 3:07 UTC (permalink / raw)
To: David Miller; +Cc: netdev
On Thu, Apr 09, 2015 at 11:01:56PM -0400, David Miller wrote:
> From: Al Viro <viro@ZenIV.linux.org.uk>
> Date: Fri, 10 Apr 2015 03:36:52 +0100
>
> > Could you pull from
> > git://git.kernel.org/scm/pub/linux/kernel/git/viro/vfs.git rxrpc-fix
>
> [davem@localhost net]$ git pull git://git.kernel.org/scm/pub/linux/kernel/git/viro/vfs.git rxrpc-fix
> fatal: remote error: access denied or repository not exported: /scm/pub/linux/kernel/git/viro/vfs.git
*blink* Actual URI is
git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git rxrpc-fix
IOW, I'd managed to type path components in the wrong order scmp/pub instead
of pub/scm. My apologies...
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [git pull] rxrpc regression fix
2015-04-10 3:07 ` Al Viro
@ 2015-04-10 3:45 ` David Miller
0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2015-04-10 3:45 UTC (permalink / raw)
To: viro; +Cc: netdev
From: Al Viro <viro@ZenIV.linux.org.uk>
Date: Fri, 10 Apr 2015 04:07:57 +0100
> On Thu, Apr 09, 2015 at 11:01:56PM -0400, David Miller wrote:
>> From: Al Viro <viro@ZenIV.linux.org.uk>
>> Date: Fri, 10 Apr 2015 03:36:52 +0100
>>
>> > Could you pull from
>> > git://git.kernel.org/scm/pub/linux/kernel/git/viro/vfs.git rxrpc-fix
>>
>> [davem@localhost net]$ git pull git://git.kernel.org/scm/pub/linux/kernel/git/viro/vfs.git rxrpc-fix
>> fatal: remote error: access denied or repository not exported: /scm/pub/linux/kernel/git/viro/vfs.git
>
> *blink* Actual URI is
>
> git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git rxrpc-fix
>
> IOW, I'd managed to type path components in the wrong order scmp/pub instead
> of pub/scm. My apologies...
That works better, pulled, thanks Al.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-04-10 3:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-10 2:36 [git pull] rxrpc regression fix Al Viro
2015-04-10 2:38 ` [PATCH] RxRPC: Fix the conversion to iov_iter Al Viro
2015-04-10 3:01 ` [git pull] rxrpc regression fix David Miller
2015-04-10 3:07 ` Al Viro
2015-04-10 3:45 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).