Commit 63fb45dd authored by Bharath SM's avatar Bharath SM Committed by Greg Kroah-Hartman
Browse files

SMB3: Do not send lease break acknowledgment if all file handles have been closed



[ Upstream commit da787d5b ]

In case if all existing file handles are deferred handles and if all of
them gets closed due to handle lease break then we dont need to send
lease break acknowledgment to server, because last handle close will be
considered as lease break ack.
After closing deferred handels, we check for openfile list of inode,
if its empty then we skip sending lease break ack.

Fixes: 59a556ae ("SMB3: drop reference to cfile before sending oplock break")
Reviewed-by: default avatarTom Talpey <tom@talpey.com>
Signed-off-by: default avatarBharath SM <bharathsm@microsoft.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7f602361
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment