cifs: Send a logoff request before removing a smb session
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>
Sat, 12 Oct 2013 15:06:03 +0000 (10:06 -0500)
committerSteve French <smfrench@gmail.com>
Sat, 2 Nov 2013 17:52:35 +0000 (12:52 -0500)
Send a smb session logoff request before removing smb session off of the list.
On a signed smb session, remvoing a session off of the list before sending
a logoff request results in server returning an error for lack of
smb signature.

Never seen an error during smb logoff, so as per MS-SMB2 3.2.5.1,
not sure how an error during logoff should be retried. So for now,
if a server returns an error to a logoff request, log the error and
remove the session off of the list.

Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>

No differences found