cifs: wait for tcon resource_id before getting fscache super
authorShyam Prasad N <sprasad@microsoft.com>
Thu, 2 Dec 2021 07:14:42 +0000 (07:14 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 7 Feb 2022 21:48:03 +0000 (15:48 -0600)
commit194f224e261ceb14483b41d6028f9fd318eb6fc8
tree16d4f2ef12331939d510671853ee6d165cad4813
parent47976e0d12b840542437fa2cb48ea385985781ea
cifs: wait for tcon resource_id before getting fscache super

The logic for initializing tcon->resource_id is done inside
cifs_root_iget. fscache super cookie relies on this for aux
data. So we need to push the fscache initialization to this
later point during mount.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.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
fs/cifs/inode.c