]> 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)
commit1a84728b5ecf4e126fececc3bf7a04b6e79f151f
treec57ab72b0244ee414fdf404761ed4f2d15cbc269
parent110b9aec403b86da5c748e32896fd1ada34c94bb
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