]> git.baikalelectronics.ru Git - kernel.git/commit
SMB3: Close deferred file handles in case of handle lease break
authorBharath SM <bharathsm@microsoft.com>
Wed, 26 Apr 2023 14:05:16 +0000 (14:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:03:36 +0000 (23:03 +0900)
commita34c2320e7cf1161470a3a566c6222cfae6a5470
tree0680c904f02760b3d7f0dcf2cc1e30026f8024cd
parent33ce3a50bc83bee19c53922cd810d4a64362dbd0
SMB3: Close deferred file handles in case of handle lease break

[ Upstream commit d906be3fa571f6fc9381911304a0eca99f1b6951 ]

We should not cache deferred file handles if we dont have
handle lease on a file. And we should immediately close all
deferred handles in case of handle lease break.

Fixes: b0bdaa3bb7b9 ("SMB3: fix lease break timeout when multiple deferred close handles for the same file.")
Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/file.c
fs/cifs/misc.c