Skip to content

Commit dbb5af6

Browse files
committed
rxrpc: Make the I/O thread take over the call and local processor work
jira LE-1907 Rebuild_History Non-Buildable kernel-5.14.0-284.30.1.el9_2 commit-author David Howells <[email protected]> commit 5e6ef4f Empty-Commit: Cherry-Pick Conflicts during history rebuild. Will be included in final tarball splat. Ref for failed cherry-pick at: ciq/ciq_backports/kernel-5.14.0-284.30.1.el9_2/5e6ef4f1.failed Move the functions from the call->processor and local->processor work items into the domain of the I/O thread. The call event processor, now called from the I/O thread, then takes over the job of cranking the call state machine, processing incoming packets and transmitting DATA, ACK and ABORT packets. In a future patch, rxrpc_send_ACK() will transmit the ACK on the spot rather than queuing it for later transmission. The call event processor becomes purely received-skb driven. It only transmits things in response to events. We use "pokes" to queue a dummy skb to make it do things like start/resume transmitting data. Timer expiry also results in pokes. The connection event processor, becomes similar, though crypto events, such as dealing with CHALLENGE and RESPONSE packets is offloaded to a work item to avoid doing crypto in the I/O thread. The local event processor is removed and VERSION response packets are generated directly from the packet parser. Similarly, ABORTs generated in response to protocol errors will be transmitted immediately rather than being pushed onto a queue for later transmission. Changes: ======== ver #2) - Fix a couple of introduced lock context imbalances. Signed-off-by: David Howells <[email protected]> cc: Marc Dionne <[email protected]> cc: [email protected] (cherry picked from commit 5e6ef4f) Signed-off-by: Jonathan Maple <[email protected]> # Conflicts: # include/trace/events/rxrpc.h # net/rxrpc/ar-internal.h # net/rxrpc/call_accept.c # net/rxrpc/call_event.c # net/rxrpc/call_object.c # net/rxrpc/conn_object.c # net/rxrpc/input.c # net/rxrpc/io_thread.c # net/rxrpc/local_event.c # net/rxrpc/local_object.c # net/rxrpc/output.c # net/rxrpc/peer_event.c # net/rxrpc/sendmsg.c
1 parent 8caad51 commit dbb5af6

File tree

1 file changed

+2424
-0
lines changed

1 file changed

+2424
-0
lines changed

0 commit comments

Comments
 (0)