]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit667580e637374b921ced652168f1b972521c8fa4
treec57ab72b0244ee414fdf404761ed4f2d15cbc269
parent0be9d889ca34262685ddcfc666c5a67a84d845d4
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