SMB3: fix lease break timeout when multiple deferred close handles for the same file.
authorBharath SM <bharathsm@microsoft.com>
Thu, 11 Aug 2022 19:46:11 +0000 (19:46 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 12 Aug 2022 01:07:06 +0000 (20:07 -0500)
commit9e31678fb403eae0f4fe37c6374be098835c73cd
tree874a69ed4def2f55e9dd4a0e6964e4e338c57300
parent5efdd9122eff772eae2feae9f0fc0ec02d4846a3
SMB3: fix lease break timeout when multiple deferred close handles for the same file.

Solution is to send lease break ack immediately even in case of
deferred close handles to avoid lease break request timing out
and let deferred closed handle gets closed as scheduled.
Later patches could optimize cases where we then close some
of these handles sooner for the cases where lease break is to 'none'

Cc: stable@kernel.org
Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/file.c