]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Fix call interruptibility handling
authorDavid Howells <dhowells@redhat.com>
Fri, 13 Mar 2020 09:22:09 +0000 (09:22 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 13 Mar 2020 23:04:30 +0000 (23:04 +0000)
commitad83ef36cb811fe6277da46c221e240fbeb5e488
tree814736e822fb1c79339c32bab98c81b05b647a25
parentc9d3972695bfe6051d38867cefca6533c3d0b55e
rxrpc: Fix call interruptibility handling

Fix the interruptibility of kernel-initiated client calls so that they're
either only interruptible when they're waiting for a call slot to come
available or they're not interruptible at all.  Either way, they're not
interruptible during transmission.

This should help prevent StoreData calls from being interrupted when
writeback is in progress.  It doesn't, however, handle interruption during
the receive phase.

Userspace-initiated calls are still interruptable.  After the signal has
been handled, sendmsg() will return the amount of data copied out of the
buffer and userspace can perform another sendmsg() call to continue
transmission.

Fixes: dab12a72d787 ("rxrpc: Use MSG_WAITALL to tell sendmsg() to temporarily ignore signals")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/rxrpc.c
include/net/af_rxrpc.h
net/rxrpc/af_rxrpc.c
net/rxrpc/ar-internal.h
net/rxrpc/call_object.c
net/rxrpc/conn_client.c
net/rxrpc/sendmsg.c