cifs: smbd: Return -EAGAIN when transport is reconnecting
authorLong Li <longli@microsoft.com>
Wed, 16 Oct 2019 20:51:56 +0000 (13:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 09:57:31 +0000 (10:57 +0100)
commit5cceead714c5b513ec9072b8e69d10e0f03d622d
treef298aadc7af9557f29796702e5fd993b564ddd15
parent7438617d2cba3c546394fa7bc295f69dfc9fd757
cifs: smbd: Return -EAGAIN when transport is reconnecting

commit 4357d45f50e58672e1d17648d792f27df01dfccd upstream.

During reconnecting, the transport may have already been destroyed and is in
the process being reconnected. In this case, return -EAGAIN to not fail and
to retry this I/O.

Signed-off-by: Long Li <longli@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/transport.c