aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorBharath SM <bharathsm@microsoft.com>2023-05-15 21:25:12 +0000
committerSteve French <stfrench@microsoft.com>2023-05-17 12:04:41 -0500
commit59a556aebc43dded08535fe97d94ca3f657915e4 (patch)
tree6c8cc9d1f299ab1bd52f4035cc4472d19cef6eff /sound
parent47592fa8eb03742048b096b4696ec133384c45eb (diff)
SMB3: drop reference to cfile before sending oplock break
In cifs_oplock_break function we drop reference to a cfile at the end of function, due to which close command goes on wire after lease break acknowledgment even if file is already closed by application but we had deferred the handle close. If other client with limited file shareaccess waiting on lease break ack proceeds operation on that file as soon as first client sends ack, then we may encounter status sharing violation error because of open handle. Solution is to put reference to cfile(send close on wire if last ref) and then send oplock acknowledgment to server. Fixes: 9e31678fb403 ("SMB3: fix lease break timeout when multiple deferred close handles for the same file.") Cc: stable@kernel.org Signed-off-by: Bharath SM <bharathsm@microsoft.com> Reviewed-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions