mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 15:41:36 +00:00
ksmbd: fix the running request count decrement
decrement the count of running requests after sending the last response for multi-response requests. Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
07781de905
commit
4b92841ef2
@ -120,6 +120,7 @@ int ksmbd_conn_try_dequeue_request(struct ksmbd_work *work)
|
||||
list_empty(&work->async_request_entry))
|
||||
return 0;
|
||||
|
||||
if (!work->multiRsp)
|
||||
atomic_dec(&conn->req_running);
|
||||
spin_lock(&conn->request_lock);
|
||||
if (!work->multiRsp) {
|
||||
|
Loading…
Reference in New Issue
Block a user