Skip to content

Commit 2659d3b

Browse files
Paulo Alcantarasmfrench
authored andcommitted
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: 6988a61 ("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>
1 parent 77b6ec0 commit 2659d3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/cifs/smb2pdu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3248,7 +3248,7 @@ __SMB2_close(const unsigned int xid, struct cifs_tcon *tcon,
32483248
free_rsp_buf(resp_buftype, rsp);
32493249

32503250
/* retry close in a worker thread if this one is interrupted */
3251-
if (rc == -EINTR) {
3251+
if (is_interrupt_error(rc)) {
32523252
int tmp_rc;
32533253

32543254
tmp_rc = smb2_handle_cancelled_close(tcon, persistent_fid,

0 commit comments

Comments
 (0)