]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: fix interrupted close commands
authorPaulo Alcantara <pc@cjr.nz>
Wed, 13 Jan 2021 17:16:16 +0000 (14:16 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jan 2021 17:26:13 +0000 (18:26 +0100)
commitc553300f1453c4bec9b2ba715d327b238963459d
treef860aac0fd7f93a81e8b083baddb4a09aaae9cad
parentd17a9571e392279b570c6baa67b203b5c16a9520
cifs: fix interrupted close commands

[ Upstream commit 2659d3bff3e1b000f49907d0839178b101a89887 ]

Retry close command if it gets interrupted to not leak open handles on
the server.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reported-by: Duncan Findlay <duncf@duncf.ca>
Suggested-by: Pavel Shilovsky <pshilov@microsoft.com>
Fixes: 6988a619f5b7 ("cifs: allow syscalls to be restarted in __smb_send_rqst()")
Cc: stable@vger.kernel.org
Reviewd-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/smb2pdu.c