Skip to content
Commit da787d5b authored by Bharath SM's avatar Bharath SM Committed by Steve French
Browse files

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



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>
parent 45a3e24f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment