diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2023-03-31 08:42:12 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-04-02 23:08:52 -0500 |
commit | 3a9b557f44ea8f216aab515a7db20e23f0eb51b9 (patch) | |
tree | 5a2587229b6511c14ef5f549fadcd2be083e58bd /fs/ksmbd/ksmbd_work.h | |
parent | 2824861773eb512b37547516d81ef78108032cb2 (diff) | |
download | linux-stable-3a9b557f44ea8f216aab515a7db20e23f0eb51b9.tar.gz linux-stable-3a9b557f44ea8f216aab515a7db20e23f0eb51b9.tar.bz2 linux-stable-3a9b557f44ea8f216aab515a7db20e23f0eb51b9.zip |
ksmbd: delete asynchronous work from list
When smb2_lock request is canceled by smb2_cancel or smb2_close(),
ksmbd is missing deleting async_request_entry async_requests list.
Because calling init_smb2_rsp_hdr() in smb2_lock() mark ->synchronous
as true and then it will not be deleted in
ksmbd_conn_try_dequeue_request(). This patch add release_async_work() to
release the ones allocated for async work.
Cc: stable@vger.kernel.org
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/ksmbd_work.h')
-rw-r--r-- | fs/ksmbd/ksmbd_work.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ksmbd/ksmbd_work.h b/fs/ksmbd/ksmbd_work.h index 3234f2cf6327..f8ae6144c0ae 100644 --- a/fs/ksmbd/ksmbd_work.h +++ b/fs/ksmbd/ksmbd_work.h @@ -68,7 +68,7 @@ struct ksmbd_work { /* Request is encrypted */ bool encrypted:1; /* Is this SYNC or ASYNC ksmbd_work */ - bool synchronous:1; + bool asynchronous:1; bool need_invalidate_rkey:1; unsigned int remote_key; |