Skip to content
Snippets Groups Projects
Commit cff7fb96 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 62bbbfd5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment