rxrpc: Don't expose skbs to in-kernel users [ver #2]
Don't expose skbs to in-kernel users, such as the AFS filesystem, but instead provide a notification hook the indicates that a call needs attention and another that indicates that there's a new call to be collected. This makes the following possibilities more achievable: (1) Call refcounting can be made simpler if skbs don't hold refs to calls. (2) skbs referring to non-data events will be able to be freed much sooner rather than being queued for AFS to pick up as rxrpc_kernel_recv_data will be able to consult the call state. (3) We can shortcut the receive phase when a call is remotely aborted because we don't have to go through all the packets to get to the one cancelling the operation. (4) It makes it easier to do encryption/decryption directly between AFS's buffers and sk_buffs. (5) Encryption/decryption can more easily be done in the AFS's thread contexts - usually that of the userspace process that issued a...
Showing
- Documentation/networking/rxrpc.txt 31 additions, 41 deletionsDocumentation/networking/rxrpc.txt
- fs/afs/cmservice.c 77 additions, 65 deletionsfs/afs/cmservice.c
- fs/afs/fsclient.c 62 additions, 86 deletionsfs/afs/fsclient.c
- fs/afs/internal.h 9 additions, 24 deletionsfs/afs/internal.h
- fs/afs/rxrpc.c 158 additions, 281 deletionsfs/afs/rxrpc.c
- fs/afs/vlclient.c 3 additions, 4 deletionsfs/afs/vlclient.c
- include/net/af_rxrpc.h 11 additions, 24 deletionsinclude/net/af_rxrpc.h
- net/rxrpc/af_rxrpc.c 15 additions, 14 deletionsnet/rxrpc/af_rxrpc.c
- net/rxrpc/ar-internal.h 21 additions, 2 deletionsnet/rxrpc/ar-internal.h
- net/rxrpc/call_accept.c 9 additions, 4 deletionsnet/rxrpc/call_accept.c
- net/rxrpc/call_object.c 3 additions, 2 deletionsnet/rxrpc/call_object.c
- net/rxrpc/conn_event.c 0 additions, 1 deletionnet/rxrpc/conn_event.c
- net/rxrpc/input.c 8 additions, 2 deletionsnet/rxrpc/input.c
- net/rxrpc/output.c 1 addition, 1 deletionnet/rxrpc/output.c
- net/rxrpc/recvmsg.c 157 additions, 34 deletionsnet/rxrpc/recvmsg.c
- net/rxrpc/skbuff.c 0 additions, 1 deletionnet/rxrpc/skbuff.c
Please register or sign in to comment