diff options
author | Pavel Shilovsky <pshilov@microsoft.com> | 2019-11-21 11:35:14 -0800 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-11-25 01:14:53 -0600 |
commit | 7b71843fa7028475b052107664cbe120156a2cfc (patch) | |
tree | 01de54f71dde647272b02b670f5e3a130b65e340 /fs/cifs/smb2misc.c | |
parent | 86a7964be7afaf3df6b64faaa10a7032d2444e51 (diff) | |
download | linux-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