diff options
author | Pali Rohár <pali@kernel.org> | 2024-11-02 22:06:50 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2025-04-01 09:54:17 +0300 |
commit | e94e882a6d69525c07589222cf3a6ff57ad12b5b (patch) | |
tree | 5dd810f020acb857f4bd098f757c5a2e80c63b0a /tools/perf/scripts/python/parallel-perf.py | |
parent | 665e18794804f8b42b6ae5d436a154342f62e288 (diff) | |
download | linux-e94e882a6d69525c07589222cf3a6ff57ad12b5b.tar.xz |
cifs: Fix negotiate retry functionality
SMB negotiate retry functionality in cifs_negotiate() is currently broken
and does not work when doing socket reconnect. Caller of this function,
which is cifs_negotiate_protocol() requires that tcpStatus after successful
execution of negotiate callback stay in CifsInNegotiate. But if the
CIFSSMBNegotiate() called from cifs_negotiate() fails due to connection
issues then tcpStatus is changed as so repeated CIFSSMBNegotiate() call
does not help.
Fix this problem by moving retrying code from negotiate callback (which is
either cifs_negotiate() or smb2_negotiate()) to cifs_negotiate_protocol()
which is caller of those callbacks. This allows to properly handle and
implement correct transistions between tcpStatus states as function
cifs_negotiate_protocol() already handles it.
With this change, cifs_negotiate_protocol() now handles also -EAGAIN error
set by the RFC1002_NEGATIVE_SESSION_RESPONSE processing after reconnecting
with NetBIOS session.
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions