diff options
author | David Howells <dhowells@redhat.com> | 2019-05-09 09:21:21 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2019-05-16 17:25:20 +0200 |
commit | b960a34b73e4c1c972623bc2076e24b97588d09e (patch) | |
tree | b7fafd6110ffa1aed594d55097755eea65da5d8d /include/net | |
parent | afs: Fix error propagation from server record check/update (diff) | |
download | linux-b960a34b73e4c1c972623bc2076e24b97588d09e.tar.xz linux-b960a34b73e4c1c972623bc2076e24b97588d09e.zip |
rxrpc: Allow the kernel to mark a call as being non-interruptible
Allow kernel services using AF_RXRPC to indicate that a call should be
non-interruptible. This allows kafs to make things like lock-extension and
writeback data storage calls non-interruptible.
If this is set, signals will be ignored for operations on that call where
possible - such as waiting to get a call channel on an rxrpc connection.
It doesn't prevent UDP sendmsg from being interrupted, but that will be
handled by packet retransmission.
rxrpc_kernel_recv_data() isn't affected by this since that never waits,
preferring instead to return -EAGAIN and leave the waiting to the caller.
Userspace initiated calls can't be set to be uninterruptible at this time.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/af_rxrpc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/af_rxrpc.h b/include/net/af_rxrpc.h index c04602ca4a55..93358bfc0e1b 100644 --- a/include/net/af_rxrpc.h +++ b/include/net/af_rxrpc.h @@ -45,6 +45,7 @@ struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *, gfp_t, rxrpc_notify_rx_t, bool, + bool, unsigned int); int rxrpc_kernel_send_data(struct socket *, struct rxrpc_call *, struct msghdr *, size_t, |