summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2misc.c
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilov@microsoft.com>2019-11-21 11:35:14 -0800
committerSteve French <stfrench@microsoft.com>2019-11-25 01:14:53 -0600
commit7b71843fa7028475b052107664cbe120156a2cfc (patch)
tree01de54f71dde647272b02b670f5e3a130b65e340 /fs/cifs/smb2misc.c
parent86a7964be7afaf3df6b64faaa10a7032d2444e51 (diff)
downloadlinux-7b71843fa7028475b052107664cbe120156a2cfc.tar.gz
linux-7b71843fa7028475b052107664cbe120156a2cfc.tar.bz2
linux-7b71843fa7028475b052107664cbe120156a2cfc.zip
CIFS: Do not miss cancelled OPEN responses
When an OPEN command is cancelled we mark a mid as cancelled and let the demultiplex thread process it by closing an open handle. The problem is there is a race between a system call thread and the demultiplex thread and there may be a situation when the mid has been already processed before it is set as cancelled. Fix this by processing cancelled requests when mids are being destroyed which means that there is only one thread referencing a particular mid. Also set mids as cancelled unconditionally on their state. Cc: Stable <stable@vger.kernel.org> Tested-by: Frank Sorenson <sorenson@redhat.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2misc.c')
0 files changed, 0 insertions, 0 deletions