be made tunable in future.
Note that from this point, the RXRPC_REQUEST_ACK flag is set on DATA
packets as we transmit them and not stored statically in the sk_buff.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/ar-internal.h |1 +
net/rxrpc/output.c
/dhowells/linux-fs.git
rxrpc-rewrite-20160922
David
---
David Howells (9):
rxrpc: Don't store the rxrpc header in the Tx queue sk_buffs
rxrpc: Add re-sent Tx annotation
rxrpc: Add per-peer RTT tracker
rxrpc: Send pings to get RTT data
rxrpc: Expedite ping
that RTT determination can be observed.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/ar-internal.h |7 +--
net/rxrpc/input.c | 48 ++-
net/rxrpc/misc.c| 11 ++-
net/rxrpc/output.c
Add a Tx-phase annotation for packet buffers to indicate that a buffer has
already been retransmitted. This will be used by future congestion
management. Re-retransmissions of a packet don't affect the congestion
window managment in the same way as initial retransmissions.
Signed-off-by: David
transmissions to elicit a
response for RTT purposes and one to log responses that contribute RTT
data.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
include/trace/events/rxrpc.h | 61 ++
net/rxrpc/ar-internal.h | 25 ++---
net/rxrpc/
/dhowells/linux-fs.git
rxrpc-rewrite-20160917-2
David
---
David Howells (11):
rxrpc: Print the packet type name in the Rx packet trace
rxrpc: Add some additional call tracing
rxrpc: Add connection tracepoint and client conn state tracepoint
rxrpc: Add a tracepoint
Add additional call tracepoint points for noting call-connected,
call-released and connection-failed events.
Also fix one tracepoint that was using an integer instead of the
corresponding enum value as the point type.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rx
Add a tracepoint to follow the insertion of a packet into the transmit
buffer, its transmission and its rotation out of the buffer.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
include/trace/events/rxrpc.h | 26 ++
net/rxrpc/ar-internal.h
Add a configuration option to inject packet loss by discarding
approximately every 8th packet received and approximately every 8th DATA
packet transmitted.
Note that no locking is used, but it shouldn't really matter.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/K
Add a tracepoint to log information from received ACK packets.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
include/trace/events/rxrpc.h | 26 ++
net/rxrpc/input.c|2 ++
2 files changed, 28 insertions(+)
diff --git a/include/trace/
Add a tracepoint to follow what recvmsg does within AF_RXRPC.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
include/trace/events/rxrpc.h | 34 ++
net/rxrpc/ar-internal.h | 17 +
net/rxrpc/misc.c
) A pair of 'lost' events are added, along with rxrpc_lose_skb() for
packet loss injection recording.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
include/trace/events/rxrpc.h | 12 +++---
net/rxrpc/af_rxrpc.c |5 ++--
net/rxrpc/ar-internal.h
Remove _enter/_debug/_leave calls from rxrpc_recvmsg_data() of which one
uses an uninitialised variable.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/recvmsg.c |8
1 file changed, 8 deletions(-)
diff --git a/net/rxrpc/recvmsg.c b/net/rxrpc/recvmsg.c
Add a tracepoint to log information about ACK transmission.
Signed-off-by: David Howels
---
include/trace/events/rxrpc.h | 30 ++
net/rxrpc/conn_event.c |3 +++
net/rxrpc/output.c |7 ++-
3 files changed, 39
Add a pair of tracepoints, one to track rxrpc_connection struct ref
counting and the other to track the client connection cache state.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
include/trace/events/rxrpc.h | 60 +++
net/rxrpc/ar-internal.h
.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/input.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c
index f0d9115b9b7e..c1f83d22f9b7 100644
--- a/net/rxrpc/input.c
+++ b/net/rxrpc/input.c
@@ -384,7 +384,7 @@
Add a tracepoint to follow the life of packets that get added to a call's
receive buffer.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
include/trace/events/rxrpc.h | 33 +
net/rxrpc/ar-internal.h | 12
net/rxrpc/call_ac
Record calls that need to be accepted using sk_acceptq_added() otherwise
the backlog counter goes negative because sk_acceptq_removed() is called.
This causes the preallocator to malfunction.
Calls that are preaccepted by AFS within the kernel aren't affected by
this.
Signed-off-by: David
Move the check of rx_pkt_offset from rxrpc_locate_data() to the caller,
rxrpc_recvmsg_data(), so that it's more clear what's going on there.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/recvmsg.c |9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff
Print a symbolic packet type name for each valid received packet in the
trace output, not just a number.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
include/trace/events/rxrpc.h |5 +++--
net/rxrpc/ar-internal.h |6 +++---
2 files changed, 6 insertions(+), 5 del
as the continue-statements skip them.
Without this, if there are any positive acks within the loop, the do-loop
will cycle forever because the counter increment is never done.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/call_event.c | 12
1 file chan
are conditional.
Without this, we miss some of the cleanup.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/call_object.c | 36
1 file changed, 12 insertions(+), 24 deletions(-)
diff --git a/net/rxrpc/call_object.c b/net/rxrpc/call_ob
Purge the queue of to_be_accepted calls on socket release. Note that
purging sock_calls doesn't release the ref owned by to_be_accepted.
Probably the sock_calls list is redundant given a purges of the recvmsg_q,
the to_be_accepted queue and the calls tree.
Signed-off-by: David Howells <dh
phase has been ended.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/input.c |4 +++-
net/rxrpc/recvmsg.c | 49 +
2 files changed, 36 insertions(+), 17 deletions(-)
diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c
Don't transmit an ACK if call->ackr_reason in unset. There's the
possibility of a race between recvmsg() sending an ACK and the background
processing thread trying to send the same one.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/output.c |5 +
1 file c
kernel_sendmsg() is invoked. That way, jumbo packets can
be assembled on the spur of the moment for (re-)transmission.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/sendmsg.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/rxrpc/sendmsg.c b/net
onn to be moved into the
inactive state and deleted if it isn't resurrected before the final put is
called.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/conn_client.c |1 -
1 file changed, 1 deletion(-)
diff --git a/net/rxrpc/conn_client.c b/net/rxrpc/conn_clien
rxrpc_send_call_packet() should use type in both its switch-statements
rather than using pkt->whdr.type. This might give the compiler an easier
job of uninitialised variable checking.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/output.c |2 +-
1 file c
, but discarded,
due to a race with another process that set up a parallel connection, which
was then shared instead.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/conn_client.c | 28 +---
1 file changed, 13 insertions(+), 15 deletions(-)
diff --git a/net
-20160917-1
David
---
David Howells (14):
rxrpc: Remove some whitespace.
rxrpc: Move the check of rx_pkt_offset from rxrpc_locate_data() to caller
rxrpc: Check the return value of rxrpc_locate_data()
rxrpc: Fix handling of the last packet in rxrpc_recvmsg_data()
rxrpc
Remove a tab that's on a line that should otherwise be blank.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/call_event.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/rxrpc/call_event.c b/net/rxrpc/call_event.c
index 61432049869b..9367c3
Check the return value of rxrpc_locate_data() in rxrpc_recvmsg_data().
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/recvmsg.c |5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/net/rxrpc/recvmsg.c b/net/rxrpc/recvmsg.c
index 0d085f5cf1bf..1edf2c
erence to
>> `ip6_route_output_flags'
Reported-by: kbuild test robot <fengguang...@intel.com>
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/Kconfig|7 +++
net/rxrpc/af_rxrpc.c |7 ++-
net/rxrpc/conn_object.c |2 ++
net/rxrpc/local_object.c |
/scm/linux/kernel/git/dhowells/linux-fs.git
rxrpc-rewrite-20160913-2
David
---
David Howells (4):
rxrpc: Create an address for sendmsg() to bind unbound socket with
rxrpc: Don't specify protocol to when creating transport socket
rxrpc: Use rxrpc_extract_addr_from_skb() rather
Pass 0 as the protocol argument when creating the transport socket rather
than IPPROTO_UDP.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/local_object.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/rxrpc/local_object.c b/net
and SOCK_DGRAM as the default. For anything
else, bind() must be used.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/af_rxrpc.c | 12
1 file changed, 12 insertions(+)
diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c
index 25d00ded24bc..741b0d
There are two places that want to transmit a packet in response to one just
received and manually pick the address to reply to out of the sk_buff.
Make them use rxrpc_extract_addr_from_skb() instead so that IPv6 is handled
automatically.
Signed-off-by: David Howells <dhowe...@redhat.
to some of the RPC calls.
Note that a good portion of this patch is replacing "%pI4:%u" in print
statements with "%pISpc" which is able to handle both protocols and print
the port.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/Kconfig|7
David Howells <dhowe...@redhat.com> wrote:
> Here is a set of patches that add IPv6 support. They need to be applied on
> top of the just-posted miscellaneous fix patches. They are:
This subset needs to be made to depend on CONFIG_IPV6.
David
and SOCK_DGRAM as the default. For anything
else, bind() must be used.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/af_rxrpc.c | 12
1 file changed, 12 insertions(+)
diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c
index 25d00ded24bc..741b0d
There are two places that want to transmit a packet in response to one just
received and manually pick the address to reply to out of the sk_buff.
Make them use rxrpc_extract_addr_from_skb() instead so that IPv6 is handled
automatically.
Signed-off-by: David Howells <dhowe...@redhat.
Pass 0 as the protocol argument when creating the transport socket rather
than IPPROTO_UDP.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/local_object.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/rxrpc/local_object.c b/net
to some of the RPC calls.
Note that a good portion of this patch is replacing "%pI4:%u" in print
statements with "%pISpc" which is able to handle both protocols and print
the port.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/af_rxrpc.c
://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
rxrpc-rewrite-20160913-2
David
---
David Howells (4):
rxrpc: Create an address for sendmsg() to bind unbound socket with
rxrpc: Don't specify protocol to when creating transport socket
rxrpc: Use
Allow tx_winsize to grow when the ACK info packet shows a larger receive
window at the other end rather than only permitting it to shrink.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/input.c |8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git
as that entails doing cleanup in softirq context, but it's unlikely as
there are several refs held elsewhere, at least one of which must be put by
someone in process context calling rxrpc_release_call(). However, it's not
a problem if we do have to do that.
Signed-off-by: David Howells <dh
Peer records created for incoming connections weren't getting their hash
key set. This meant that incoming calls wouldn't see more than one DATA
packet - which is not a problem for AFS CM calls with small request data
blobs.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net
The IDLE ACK packet should use the rxrpc_idle_ack_delay setting when the
timer is set for it.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/call_event.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/rxrpc/call_event.c b/net/rxrpc/call_e
ket
that lie beyond the receive window when the first packet of the jumbo is
within the window. Just discard the excess subpackets instead. This
allows the receive window to be opened up right to the buffer size less one
for the dead slot.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
et (we think it's not
there and just ignore it).
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/input.c |8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c
index a707d5952164..5958ef8ba2a0 100644
--- a/net/r
Add a missing unlock in rxrpc_call_accept() in the path taken if there's no
call to wake up.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/call_accept.c |8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/net/rxrpc/call_accept.c b/net
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 <dhowe...@redhat.com>
---
net/rxrpc/recvmsg.c
separately at the moment.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/af_rxrpc.c|2 +-
net/rxrpc/ar-internal.h |2 ++
net/rxrpc/call_accept.c |3 ++-
net/rxrpc/call_object.c |2 ++
4 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/net
that it doesn't
get full.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/input.c |2 ++
1 file changed, 2 insertions(+)
diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c
index afeba98004b1..a707d5952164 100644
--- a/net/rxrpc/input.c
+++ b/net/rxrpc/input.c
@@ -59,6
/scm/linux/kernel/git/dhowells/linux-fs.git
rxrpc-rewrite-20160913-1
David
---
David Howells (10):
rxrpc: Make sure we initialise the peer hash key
rxrpc: Add missing wakeup on Tx window rotation
rxrpc: The IDLE ACK packet should use rxrpc_idle_ack_delay
rxrpc
and the awkward manual accept
stage to be bypassed.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
fs/afs/rxrpc.c | 71 ++
include/net/af_rxrpc.h | 10 ++
net/rxrpc/af_rxrpc.c | 16 ++-
net/rxrpc/ar-internal.h | 32 ++
net/rxrpc/call_accept.c
Remove the sk_buff count from the rxrpc_call struct as it's less useful
once we stop queueing sk_buffs.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
include/trace/events/rxrpc.h | 10 +++---
net/rxrpc/ar-internal.h |1 -
net/rxrpc/call_object.c
RXRPC_JUMBO_SUBPKTLEN which is the total of the amount of data
in a non-terminal subpacket plus the following secondary header for
the next packet included in the jumbo packet.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
include/rxrpc/packet.h |8 +---
1 file chan
/log/?h=rxrpc-rewrite
Tagged thusly:
git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
rxrpc-rewrite-20160908
David
---
David Howells (7):
rxrpc: Fix ASSERTCMP and ASSERTIFCMP to handle signed values
rxrpc: Update protocol definitions slightly
Add two tracepoints:
(1) Record the RxRPC protocol header of packets retrieved from the UDP
socket by the data_ready handler.
(2) Record the outcome of the data_ready handler.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
include/trace/events/rxrpc.h
values in struct rxrpc_call and
struct rxrpc_connection can't be bitfields as __typeof__ can't handle them.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/ar-internal.h | 24 +---
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/net/rx
Convert the rxrpc_local::services list to an hlist so that it can be
accessed under RCU conditions more readily.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/af_rxrpc.c | 10 +-
net/rxrpc/ar-internal.h |4 ++--
net/rxrpc/call_accept.c |2 +-
net
the circumstances when it aborts a call.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
fs/afs/rxrpc.c | 17 ---
include/net/af_rxrpc.h |3 +
include/trace/events/rxrpc.h | 29 +++
net/rxrpc/ar-internal.h | 14 -
net/rxrpc/call_e
/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=rxrpc-rewrite
Tagged thusly:
git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
rxrpc-rewrite-20160904-2
David
---
David Howells (2):
rxrpc: Fix returns of call completion helpers
rxrpc: Add tracepoint
rxrpc_set_call_completion() returns bool, not int, so the ret variable
should match this.
rxrpc_call_completed() and __rxrpc_call_completed() should return the value
of rxrpc_set_call_completion().
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/ar-internal.h
Tagged thusly:
git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
rxrpc-rewrite-20160904-2
David
---
David Howells (1):
rxrpc: Add tracepoint for working out where aborts happen
fs/afs/rxrpc.c | 17 ---
include/net/af_rxrpc.h
Use call->peer rather than call->conn->params.peer to avoid the possibility
of call->conn being NULL and, whilst we're at it, check it for NULL before we
access it.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/call_object.c |8 +---
1 file changed,
Remove some whitespace.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/ar-internal.h |3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/net/rxrpc/ar-internal.h b/net/rxrpc/ar-internal.h
index bb342f5fe7e4..ad702f9f8d1f 100644
--- a/net/rxrpc/ar-inte
Cache the security index in the rxrpc_call struct so that we can get at it
even when the call has been disconnected and the connection pointer
cleared.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/ar-internal.h |1 +
net/rxrpc/call_object.c |1 +
net
is disconnected.
(5) Get rid of the dead call expiry setting as there's no longer a timer
to set.
(6) rxrpc_destroy_all_calls() can just check that the call list is empty.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/af_rxrpc.c|4 -
net/rxrpc/ar-inte
on the branch):
http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=rxrpc-rewrite
Tagged thusly:
git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
rxrpc-rewrite-20160907-1
David
---
David Howells (8):
rxrpc: Whitespace cleanup
Use rxrpc_is_service_call() rather than rxrpc_conn_is_service() if the call
is available just in case call->conn is NULL.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/input.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/rxrpc/inpu
Pass the connection pointer to rxrpc_post_packet_to_call() as the call
might get disconnected whilst we're looking at it, but the connection
pointer determined by rxrpc_data_read() is guaranteed by RCU for the
duration of the call.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
Delete rxrpc_kernel_free_skb() as it's unused.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/skbuff.c | 13 -
1 file changed, 13 deletions(-)
diff --git a/net/rxrpc/skbuff.c b/net/rxrpc/skbuff.c
index 9752f8b1fdd0..a546a2ba6341 100644
--- a/net/rxrpc/sk
-by: David Howells <dhowe...@redhat.com>
---
include/trace/events/rxrpc.h | 11 +++---
net/rxrpc/af_rxrpc.c |2 +-
net/rxrpc/ar-internal.h | 22 ++-
net/rxrpc/call_accept.c | 10 -
net/rxrpc/call_event.c |2 +-
net/rxrpc/call_ob
Arnd Bergmann wrote:
> The rxrpc_process_call function has debug code to print a failure code,
> but instead of printing the code from the rxrpc_call structure, it
> prints an uninitialized variable:
>
> net/rxrpc/call_event.c: In function 'rxrpc_process_call':
>
Colin King wrote:
> From: Colin Ian King
>
> sched will be uninitialized (and contain a garbage value) in the case
> where call->state >= RXRPC_CALL_DEAD; fix this by initializing sched
> to false to avoid an inadvertent call to
[cc'ing Jeff Altman for comment]
David Laight wrote:
> > Create a random epoch value rather than a time-based one on startup and set
> > the top bit to indicate that this is the case.
>
> Why set the top bit?
> There is nothing to stop the time (in seconds) from having
tipriy...@gmail.com>
Signed-off-by: David Howells <dhowe...@redhat.com>
---
fs/afs/vlocation.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/afs/vlocation.c b/fs/afs/vlocation.c
index 52976785a32c..45a86396fd2d 100644
--- a/fs/afs/vlocation.c
+++ b/fs/afs/
Create a random epoch value rather than a time-based one on startup and set
the top bit to indicate that this is the case.
Also create a random starting client connection ID value. This will be
incremented from here as new client connections are created.
Signed-off-by: David Howells <dh
hridhar <bhaktipriy...@gmail.com>
Signed-off-by: David Howells <dhowe...@redhat.com>
---
fs/afs/rxrpc.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/afs/rxrpc.c b/fs/afs/rxrpc.c
index 244896baf241..37608be52abd 100644
--- a/fs/afs/rxrpc.c
+++ b/fs/af
orkqueue is being used on a memory reclaim path, WQ_MEM_RECLAIM
has been set to ensure forward progress under memory pressure.
Signed-off-by: Bhaktipriya Shridhar <bhaktipriy...@gmail.com>
Signed-off-by: David Howells <dhowe...@redhat.com>
---
fs/afs/callback.c |4 ++--
1 file changed, 2 i
It seems the local epoch should only be changed on boot, so remove the code
that changes it for client connections.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/conn_client.c | 32
1 file changed, 8 insertions(+), 24 deletions(-)
haktipriya Shridhar <bhaktipriy...@gmail.com>
Signed-off-by: David Howells <dhowe...@redhat.com>
---
fs/afs/flock.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/afs/flock.c b/fs/afs/flock.c
index d91a9c9cfbd0..3191dff2c156 100644
--- a/fs/afs/flock.c
+++
Split the sendmsg code from the packet transmission code (mostly to be
found in output.c).
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/Makefile |1
net/rxrpc/ar-internal.h |9 -
net/rxrpc/misc.c|5
net/rxrpc/output.c
Move enum rxrpc_command to sendmsg.c as it's now only used in that file.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/ar-internal.h |7 ---
net/rxrpc/sendmsg.c |7 +++
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/net/rxrpc/ar-inte
control.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/call_object.c |2 --
net/rxrpc/conn_client.c |4
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/net/rxrpc/call_object.c b/net/rxrpc/call_object.c
index 57e00fc9cff2..65691742199b 100644
---
Rearrange net/rxrpc/sendmsg.c to be in a more logical order. This makes it
easier to follow and eliminates forward declarations.
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/sendmsg.c | 1006 +--
1 file changed, 501 inse
rxrpc-rewrite-20160904-2
David
---
David Howells (3):
rxrpc: Split sendmsg from packet transmission code
rxrpc: Rearrange net/rxrpc/sendmsg.c
rxrpc Move enum rxrpc_command to sendmsg.c
net/rxrpc/Makefile |1
net/rxrpc/ar-internal.h | 16 -
net/rxrpc/misc.c
d' may be used uninitialized in this
function [-Werror=maybe-uninitialized]
This sets the 'sched' variable to zero to restore the previous
behavior.
Signed-off-by: Arnd Bergmann <a...@arndb.de>
Fixes: f5c17aaeb2ae ("rxrpc: Calls should only have one terminal state")
Signed-off-by
ot;, error);
^
Signed-off-by: David Howells <dhowe...@redhat.com>
---
net/rxrpc/call_event.c |5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/net/rxrpc/call_event.c b/net/rxrpc/call_event.c
index de72de662044..4754c7fb6242 100644
create_singlethread_workqueue
fs/afs/callback: Remove deprecated create_singlethread_workqueue
fs/afs/flock: Remove deprecated create_singlethread_workqueue
David Howells (4):
rxrpc: Fix uninitialised variable warning
rxrpc: The client call state must be changed before attachment
David Miller wrote:
> Ok, I tried this one instead. If no warnings, I'll push it to net-next.
Thanks,
David
David Miller wrote:
> Actually, reverted, this adds a new warning to the build:
>
> net/rxrpc/recvmsg.c: In function ‘rxrpc_kernel_recv_data’:
> net/rxrpc/recvmsg.c:531:1: warning: label ‘need_more_data’ defined but not
> used [-Wunused-label]
> need_more_data:
> ^
>
Arnd Bergmann wrote:
> Right, sorry about that. Do you want me to resend the fixed version,
> or do you apply and fix it yourself?
I can fix it up myself. I'll pull it into my tree when I've finished doing
the fixing up I'm currently working on.
David
Arnd Bergmann wrote:
> I'll follow up with the fixes, both of which are rather
> straightforward.
Are they both in?
[PATCH 2/2] rxrpc: fix undefined behavior in rxrpc_mark_call_released
David
Is there a 1/2 somewhere? I don't see it.
David
Arnd Bergmann wrote:
> + } else {
> + sched = 0;
That should be false, not 0, btw.
David
Arnd Bergmann wrote:
> gcc -Wmaybe-initialized correctly points out a newly introduced bug
> through which we can end up calling rxrpc_queue_call() for a dead
> connection:
How do you turn that on from within the Kbuild system?
David
ing handed over to the
in-kernel user. To process the queue internally, a temporary function,
temp_deliver_data() has been added. This will be replaced with common code
between the rxrpc_recvmsg() path and the kernel_rxrpc_recv_data() path in a
future patch.
Signed-off-by: David Howells <
301 - 400 of 824 matches
Mail list logo