]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: count all requests in req_running counter
authorMarios Makassikis <mmakassikis@freebox.fr>
Sat, 14 Dec 2024 03:16:45 +0000 (12:16 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 13:02:03 +0000 (14:02 +0100)
commit7e2bb4108a05c9c249fcca9b38d3fca9d8df3812
tree0646de6f5e9c887bb6f3c7c94e1c0ad30ed30ff4
parent280d1b743a3b827a4d8a90d93820238a5381e6b7
ksmbd: count all requests in req_running counter

[ Upstream commit 83c47d9e0ce79b5d7c0b21b9f35402dbde0fa15c ]

This changes the semantics of req_running to count all in-flight
requests on a given connection, rather than the number of elements
in the conn->request list. The latter is used only in smb2_cancel,
and the counter is not used

Signed-off-by: Marios Makassikis <mmakassikis@freebox.fr>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Stable-dep-of: 43fb7bce8866 ("ksmbd: fix broken transfers when exceeding max simultaneous operations")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/server/connection.c