ksmbd: avoid reclaiming expired durable opens by the client
authorNamjae Jeon <linkinjeon@kernel.org>
Tue, 21 May 2024 13:57:52 +0000 (22:57 +0900)
committerSteve French <stfrench@microsoft.com>
Sun, 14 Jul 2024 23:00:35 +0000 (18:00 -0500)
commit520da3c488c5bb177871634e713eb8a106082e6b
tree2263a5d208bd8de091da891266d9f1e943d5d7f7
parent051d469be1b355ffc62fcd9c82195230c780228a
ksmbd: avoid reclaiming expired durable opens by the client

The expired durable opens should not be reclaimed by client.
This patch add ->durable_scavenger_timeout to fp and check it in
ksmbd_lookup_durable_fd().

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/vfs_cache.c
fs/smb/server/vfs_cache.h