]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Don't need to take the RCU read lock in the packet receiver
authorDavid Howells <dhowells@redhat.com>
Mon, 8 Oct 2018 14:45:56 +0000 (15:45 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 8 Oct 2018 14:45:56 +0000 (15:45 +0100)
commite859108ee8bb26313c95a2bd5bc432642a712af9
tree0a01e47ab2a026a33c483629e6a3bdef22dad02c
parent9bdb93a8d2912f1f3446fcd2b1642400cf1f612d
rxrpc: Don't need to take the RCU read lock in the packet receiver

We don't need to take the RCU read lock in the rxrpc packet receive
function because it's held further up the stack in the IP input routine
around the UDP receive routines.

Fix this by dropping the RCU read lock calls from rxrpc_input_packet().
This simplifies the code.

Fixes: bc1ec9e62ccf ("rxrpc: Pass the last Tx packet marker in the annotation buffer")
Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/input.c