]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:18 +0000 (14:24 +0200)
commitc2dacbec9b448edc46b87d98e2aa2b94387c3798
tree7c786f7920fd180ceb1cd7b1f6236941fce50315
parent032bc1e194f1a362a0c9c9d750589b6040039680
SMB3: fix lease break timeout when multiple deferred close handles for the same file.

commit 909353c8b87538443013d7f07b393b8cd8bd2992 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/file.c