]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix interrupted close commands
authorPaulo Alcantara <pc@cjr.nz>
Wed, 13 Jan 2021 17:16:16 +0000 (14:16 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 13 Jan 2021 18:55:33 +0000 (12:55 -0600)
commit694fc828b4acc16ee04e39ea09fe1af7e3861ae5
tree6afdc4626d0327875d7f4f44650e128392d9571b
parent487954da3cbef1f1780b14ad58b4262b1f1b9e04
cifs: fix interrupted close commands

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: 667c4fedde69 ("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>
fs/cifs/smb2pdu.c