OSDN Git Service

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>
Fri, 12 Nov 2021 19:10:33 +0000 (13:10 -0600)
commit02102744d364c1bca4a0da13c2a72656037f64eb
treec57ab72b0244ee414fdf404761ed4f2d15cbc269
parent7f28af9cf542f61758b982f8304f951ca99c8f58
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