• David Howells's avatar
    rxrpc: Reduce the use of RCU in packet input · cd21effb
    David Howells authored
    Shrink the region of rxrpc_input_packet() that is covered by the RCU read
    lock so that it only covers the connection and call lookup.  This means
    that the bits now outside of that can call sleepable functions such as
    kmalloc and sendmsg.
    
    Also take a ref on the conn or call we're going to use before we drop the
    RCU read lock.
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    cc: Marc Dionne <marc.dionne@auristor.com>
    cc: linux-afs@lists.infradead.org
    cd21effb
call_accept.c 14.1 KB