cifs: Move the in_send statistic to __smb_send_rqst()
authorZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Wed, 16 Nov 2022 03:11:36 +0000 (11:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:31:22 +0000 (13:31 +0100)
commit630f8a8575783fcbe43dddaf773b9837c9a62da7
treecbe8792fcab2723827292a1e509a9cc0d65ae813
parent418bde7227dd8464f4e47ce69ca26e0ef87dd78f
cifs: Move the in_send statistic to __smb_send_rqst()

[ Upstream commit d0dc41119905f740e8d5594adce277f7c0de8c92 ]

When send SMB_COM_NT_CANCEL and RFC1002_SESSION_REQUEST, the
in_send statistic was lost.

Let's move the in_send statistic to the send function to avoid
this scenario.

Fixes: 7ee1af765dfa ("[CIFS]")
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/transport.c