]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit909353c8b87538443013d7f07b393b8cd8bd2992
tree874a69ed4def2f55e9dd4a0e6964e4e338c57300
parentc57fbdd5e3a93a6a0d4040e1219c2140f1d1b970
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