]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Fri, 3 Dec 2021 18:29:59 +0000 (12:29 -0600)
commit1a8589fc1d6cbe88286a465084b6526cd24f6989
tree2c73a9fc9ea7198b2e43ccf8d8f8749f854c52a8
parentf2ce7c56d6dafa1c65a513711372743d9f04412d
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