cifs`: handle ERRBaduid for SMB1
authorRoberto Bergantinos Corpas <rbergant@redhat.com>
Fri, 3 Jul 2020 09:29:32 +0000 (11:29 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 2 Aug 2020 23:00:25 +0000 (18:00 -0500)
commita3713ec3d775ff9da2e46f6652b23ff598c3ed36
tree5c1fa23d25a7dac7423b5a42a53c2fa14329d9e2
parent66a4bbc327e740c65b19a471fb9911f7f4b876fb
cifs`: handle ERRBaduid for SMB1

If server returns ERRBaduid but does not reset transport connection,
we'll keep sending command with a non-valid UID for the server as long
as transport is healthy, without actually recovering. This have been
observed on the field.

This patch adds ERRBaduid handling so that we set CifsNeedReconnect.

map_and_check_smb_error() can be modified to extend use cases.

Signed-off-by: Roberto Bergantinos Corpas <rbergant@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/cifsproto.h
fs/cifs/netmisc.c
fs/cifs/transport.c