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)
commit2659d3bff3e1b000f49907d0839178b101a89887
tree6afdc4626d0327875d7f4f44650e128392d9571b
parent77b6ec01c29aade01701aa30bf1469acc7f2be76
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: 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>
fs/cifs/smb2pdu.c