]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
CIFS: Return -EAGAIN instead of -ENOTSOCK
authorPavel Shilovsky <piastryyy@gmail.com>
Tue, 5 Mar 2019 23:51:56 +0000 (15:51 -0800)
committerSteve French <stfrench@microsoft.com>
Wed, 6 Mar 2019 00:14:39 +0000 (18:14 -0600)
commitafc18a6f7b849a4935f3b4d782c902749b1580fd
tree217068573701d607e2037d67fd6be807e9d98370
parent2084ed57167c3e39f99ac2bb19f19e85321d2169
CIFS: Return -EAGAIN instead of -ENOTSOCK

When we attempt to send a packet while the demultiplex thread
is in the middle of cifs_reconnect() we may end up returning
-ENOTSOCK to upper layers. The intent here is to retry the request
once the TCP connection is up, so change it to return -EAGAIN
instead. The latter error code is retryable and the upper layers
will retry the request if needed.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/transport.c