smb3: do not setup the fscache_super_cookie until fsinfo initialized
authorSteve French <stfrench@microsoft.com>
Wed, 10 Nov 2021 09:15:29 +0000 (03:15 -0600)
committerSteve French <stfrench@microsoft.com>
Mon, 7 Feb 2022 21:47:59 +0000 (15:47 -0600)
commit2f7f99bb348eb8e40b072f964d6eb1ec4062c0bb
treee42009803da1f1b70622d75e79b38d8f9879568d
parent7e57e3742d782c9b69ac7600108cc54559bf3832
smb3: do not setup the fscache_super_cookie until fsinfo initialized

We were calling cifs_fscache_get_super_cookie after tcon but before
we queried the info (QFS_Info) we need to initialize the cookie
properly.  Also includes an additional check suggested by Paulo
to make sure we don't initialize super cookie twice.

Suggested-by: David Howells <dhowells@redhat.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c
fs/cifs/fscache.c